/* GLOBAL STYLES & DYNAMIC COLORS */
:root {
    /* Define primary color palette variables */
    --primary-blue: #1e90ff; /* Dodger Blue */
    --primary-dark-blue: #0066cc;
    --accent-red: #ff4757; /* Light Red for Logout/Errors */
    --background-light: #ecf0f1; /* Very light gray/blue for body */
    --container-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    /* DYNAMIC BACKGROUND: Subtle light blue/gray */
    background-color: var(--background-light); 
    margin: 20px;
    padding-top: 60px; /* Account for fixed header */
}

/* Header Styles (Keeping light background) */
.header {
    width: 100%;
    background-color: #f8f8f8; /* Light background color */
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.platform-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-dark-blue);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}
/* User menu styles (keeping them from previous step) */
/* ... */


.container {
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 10px; /* Slightly rounder edges */
    /* DYNAMIC HIGHLIGHT: Softer, larger shadow */
    box-shadow: 0 8px 16px var(--shadow-color); 
    width: 350px; 
    max-width: 95%; /* Ensure mobile compatibility */
    text-align: center;
    border: none; /* Removed static border */
    transition: box-shadow 0.3s ease;
}

.page-title {
    color: var(--primary-dark-blue);
    margin-bottom: 30px;
    padding: 10px;
    border: 2px solid var(--primary-blue); /* Thicker, dynamic border */
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    border-radius: 5px;
}

.instruction {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    align-items: stretch;
}

label {
    text-align: left;
    margin-bottom: -10px; 
    font-weight: bold;
    color: #444;
}

/* DYNAMIC INPUT HIGHLIGHTS */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--primary-blue); /* Primary blue border */
    /* Dynamic glow effect on focus */
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.6); 
    outline: none;
}

/* Common button styles */
.interactive-button {
    width: 100%;
    padding: 12px 15px;
    border: none; /* Dynamic buttons typically don't have a border */
    border-radius: 5px;
    background-color: #e9e9e9;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.interactive-button:hover {
    background-color: #dcdcdc;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger lift effect */
}

.interactive-button:active {
    background-color: #c0c0c0;
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* DYNAMIC PRIMARY ACTION BUTTONS (Login, Signup, Get Notes) */
.action-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark-blue)); /* Gradient background */
    color: white;
    border: none;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.4); /* Colored shadow */
}

.action-button:hover {
    background: linear-gradient(135deg, var(--primary-dark-blue), #106fcc);
    box-shadow: 0 6px 15px rgba(30, 144, 255, 0.6);
}

.action-button:active {
    background: var(--primary-dark-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Logout Button (Using Accent Red) */
.logout-button {
    background: var(--accent-red) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4); 
}

.logout-button:hover {
    background: #cc3944 !important;
    box-shadow: 0 6px 15px rgba(255, 71, 87, 0.6);
}

/* Specific styles for branch buttons (Recommendations) */
.branch-button {
    text-align: left;
    padding-left: 15px;
}

/* Home Link */
.home-link-container {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee; 
    padding-top: 15px;
}

.back-home-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.back-home-link:hover {
    color: var(--primary-dark-blue);
    text-decoration: underline;
}

/* User Menu Container Adjustments */
#auth-menu-container {
    /* Allow the menu container to take only the space it needs */
    flex-shrink: 0;
}

/* Dropdown Positioning Fix */
.user-dropdown {
    /* Keep existing styles */
    position: absolute;
    top: 40px; 
    right: 0; /* Keep it aligned to the right edge of its parent (.user-menu) */
    /* Ensure minimum width is maintained but doesn't cause overflow */
    min-width: 150px;
}

/* User Info Box Fix */
.user-info {
    /* Prevent the long name from stretching the container too wide */
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: 180px; /* Set a reasonable maximum width for the name */
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

