/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F5F5F5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #1A73E8;
}

a {
    color: #1A73E8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #155CBC;
}

/* Main Container Layout */
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Brand Panel (Left Side) */
.brand-panel {
    flex: 1;
    background-color: #1A73E8;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.brand-panel::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.logo-container {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.logo {
    max-width: 180px;
    height: auto;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.brand-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.brand-features {
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Login Panel (Right Side) */
.login-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.login-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1A73E8;
}

.login-description {
    color: #666;
    margin-bottom: 2rem;
}

/* Form Styling */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #1A73E8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Buttons */
.primary-button {
    width: 100%;
    padding: 0.9rem;
    background-color: #1A73E8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #155CBC;
}

.primary-button:disabled {
    background-color: #b0b0b0;
    cursor: not-allowed;
}

.text-button {
    background: none;
    border: none;
    color: #1A73E8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    text-decoration: underline;
}

.text-button:hover {
    color: #155CBC;
}

/* Email Display in Verification Step */
.email-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background-color: #f5f9ff;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.email-display p {
    font-size: 0.9rem;
    color: #666;
}

.email-display span {
    font-weight: 500;
    color: #333;
}

/* Form Footer */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.countdown {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

/* Security Information */
.security-info {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.security-info h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.security-info ul {
    list-style-type: none;
}

.security-info li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.security-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FFC107;
    font-size: 1.2rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1A73E8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

#loading-message {
    color: #333;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        height: auto;
    }
    
    .brand-panel, .login-panel {
        flex: none;
    }
    
    .brand-panel {
        padding: 2rem;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .brand-content h1 {
        font-size: 2rem;
    }
    
    .feature {
        justify-content: center;
    }
    
    .login-container {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .brand-panel {
        padding: 1.5rem;
    }
    
    .brand-content h1 {
        font-size: 1.75rem;
    }
    
    .login-container {
        padding: 1rem;
    }
    
    .login-container h2 {
        font-size: 1.5rem;
    }
}