/* Login Screen Styles */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c2c2c;
    display: flex;
    z-index: 9999;
}

.login-screen.hidden {
    display: none;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.login-left {
    background: linear-gradient(135deg, #4a3830 0%, #3d2f28 100%);
    color: white;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.login-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #ff5722;
    padding: 4px;
}

.login-logo-text h2 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.login-logo-text p {
    margin: 2px 0 0 0;
    font-size: 14px;
    color: #ccc;
    font-weight: 400;
}

.login-info {
    margin-top: 120px;
}

.login-info h1 {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.login-info p {
    font-size: 16px;
    line-height: 1.65;
    color: #d4a89a;
    max-width: 90%;
    font-weight: 400;
}

.login-features {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 40px;
    margin-top: auto;
    padding-top: 80px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #b8a89d;
    font-weight: 400;
    text-align: center;
}

.feature-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 69, 19, 0.4);
    border-radius: 12px;
}

.login-right {
    background: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-form-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 0 60px;
}

.login-header {
    text-align: left;
    margin-bottom: 50px;
}

.login-header h1 {
    font-size: 30px;
    color: #ff5722;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-header p {
    color: #555;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.login-header a {
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 8px;
}

.login-form-group label {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 14px;
    margin-bottom: 0;
}

.login-form-group input {
    padding: 14px 18px;
    border: 1px solid #d1dae6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #e8eef5;
}

.login-form-group input[type="password"] {
    letter-spacing: 2px;
    padding-right: 50px;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 20px;
    user-select: none;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #666;
}

.login-form-group input:focus {
    outline: none;
    border-color: #ff5722;
    background: #e0e9f3;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.btn-login {
    padding: 16px 30px;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    letter-spacing: 0.5px;
    box-shadow: none;
}

.btn-login:hover {
    background: #e64a19;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-login:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    color: #dc3545;
    background: #ffebee;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.login-error.show {
    display: block;
}

.user-info {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.user-info.hidden {
    display: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.user-email {
    font-weight: 600;
    color: #667eea;
}

.btn-logout {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #c82333;
}

/* Loading spinner */
.login-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* New Form Styles */
.form-container {
    width: 100%;
    max-width: 500px;
    padding: 0 60px;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-title {
    font-size: 30px;
    color: #ff5722;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-subtitle {
    color: #555;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 14px;
}

.form-input {
    padding: 14px 18px;
    border: 1px solid #d1dae6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #e8eef5;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: #ff5722;
    background: #e0e9f3;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: #333;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.error-message {
    font-size: 12px;
    color: #dc3545;
    display: none;
}

.form-options {
    display: flex;
    justify-content: flex-start;
    margin-top: -5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ff5722;
}

.btn-submit {
    padding: 16px 30px;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn-submit:hover {
    background: #e64a19;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    text-align: center;
    margin-top: 5px;
}

.link-forgot {
    color: #ff5722;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.link-forgot:hover {
    text-decoration: underline;
}

.form-divider {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.form-divider span {
    color: #666;
    font-size: 14px;
}

.btn-secondary {
    display: block;
    padding: 15px 30px;
    background: white;
    color: #ff5722;
    border: 2px solid #ff5722;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: 18px;
}

.btn-secondary:hover {
    background: #ff5722;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: flex-start;
    margin-top: -5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ff5722;
}

/* Forgot Password */
.forgot-password {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #ff5722;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.forgot-password:hover {
    color: #e64a19;
    text-decoration: underline;
}

/* Create Account Section */
.create-account-section {
    margin-top: 50px;
    text-align: center;
    padding-top: 30px;
    border-top: none;
}

.create-account-section p {
    margin: 0 0 18px 0;
    color: #666;
    font-size: 14px;
}

.btn-create-account {
    display: block;
    padding: 15px 30px;
    background: white;
    color: #ff5722;
    border: 2px solid #ff5722;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-create-account:hover {
    background: #ff5722;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 0;
        max-width: 100%;
    }
    
    .form-header {
        margin-bottom: 30px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 15px;
    }
    
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 20px 15px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-subtitle {
        font-size: 13px;
    }
}
