/* A&M Hair and Beauty - Authentication Styles */

:root {
    --primary-color: #dba9c8;
    --primary-hover: #c692b0;
    --bg-color: #ffffff;
    --text-color: #333333;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(219, 169, 200, 0.3);
    --input-bg: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --glass-bg: rgba(40, 40, 40, 0.95);
    --glass-border: rgba(219, 169, 200, 0.5);
    --input-bg: #2a2a2a;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #dba9c8 100%);
    background-attachment: fixed;
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #2a1a2e 0%, #4a2545 50%, #6b3a5c 100%);
}

#wrapper {
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--shadow);
    transition: all 0.3s ease;
}

/* Header Styles (matching main site) */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

#header .left h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#header .left:hover {
    transform: scale(1.05);
}

#header .logo img {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#header .logo:hover {
    transform: rotate(360deg) scale(1.1);
}

#header .right {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#header .right:hover {
    transform: scale(1.05);
}

#header .right img {
    width: 40px;
    height: 40px;
}

#header .right span {
    font-weight: 600;
    color: var(--text-color);
}

/* Auth Container */
#auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#auth-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

#auth-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.input-group input {
    padding: 12px 16px;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(219, 169, 200, 0.2);
}

.auth-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 169, 200, 0.4);
}

.switch-form {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.switch-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-form a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Message Styles */
#auth-message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#auth-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    color: #2e7d32;
}

#auth-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #c62828;
}

#auth-message.info {
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid #2196f3;
    color: #1565c0;
}

/* Profile Section */
.profile-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

#settings-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#settings-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.profile-info {
    background: var(--input-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.profile-info p {
    margin: 12px 0;
    font-size: 1rem;
}

.profile-info strong {
    color: var(--primary-color);
}

.profile-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 200px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.logout-btn {
    background: #ff6b6b;
}

.logout-btn:hover {
    background: #ff5252;
}

/* Settings Panel */
.settings-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 20px;
    animation: slideIn 0.3s ease;
}

.settings-box h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.theme-switch {
    display: flex;
    gap: 10px;
}

.theme-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.theme-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    #header {
        padding: 10px 15px;
    }

    #header .left h1 {
        font-size: 1.2rem;
    }

    #header .logo img {
        width: 45px;
        height: 45px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    #auth-title {
        font-size: 1.6rem;
    }

    .profile-box {
        padding: 25px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .action-btn {
        min-width: 100%;
    }
}
