/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* COLORS — OCTONOS BRAND */
:root {
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glass-blur: blur(40px);

    /* Octonos Brand Colors */
    --primary: #93B47E;
    --primary-hover: #7A9B69;
    --secondary: #2C9EA4;
    --secondary-hover: #238a8f;
    
    --text-primary: #1A1A1A;
    --text-secondary: #7A7A7A;
    --text-on-dark: #FFFFFF;
    
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: #D9D9D9;
    --input-focus: #93B47E;

    /* Backgrounds */
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-gray: #F2F2F2;

    /* Octonos Gradient Background */
    --gradient-bg: linear-gradient(135deg, 
        rgba(147, 180, 126, 0.08) 0%, 
        rgba(44, 158, 164, 0.06) 100%
    );
}

/* PAGE BACKGROUND */
html {
    min-height: 100vh;
    background: var(--bg-light);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at top left, rgba(147, 180, 126, 0.08) 0%, transparent 50%),
        radial-gradient(circle at bottom right, rgba(44, 158, 164, 0.06) 0%, transparent 50%),
        #FAFAFA;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 20px;
    overflow-x: hidden;
    margin: 0;
}

/* LOGIN CARD (GLASS) */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;

    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(147, 180, 126, 0.2);

    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 16px 48px rgba(0, 0, 0, 0.08);
    padding: 48px 40px 40px;
    text-align: center;

    animation: fadeIn 0.6s ease;
}

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

/* LOGO */
.logo {
    width: 88px;
    height: 88px;
    display: block;
    margin: 0 auto 28px;
    padding: 18px;
    background: white;
    border-radius: 22px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

/* TITLES */
.login-title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
    font-weight: 400;
}

/* INPUT FIELDS */
.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.input-group input:focus {
    outline: none;
    border-color: var(--input-focus);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(147, 180, 126, 0.1);
}

/* PASSWORD INPUT WITH TOGGLE */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* REMEMBER ME & FORGOT PASSWORD */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.forgot-password:hover {
    opacity: 0.8;
}

/* PRIMARY BUTTON (SIGN IN) */
.btn-signin {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    background: var(--secondary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 158, 164, 0.25);
}

.btn-signin:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 158, 164, 0.35);
}

.btn-signin:active {
    transform: translateY(0);
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--input-border);
}

/* SOCIAL BUTTONS */
.social-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: var(--bg-gray);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* GOOGLE BUTTON (FULL WIDTH) */
.google-btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: #ffffff;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-bottom: 24px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.google-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* FOOTER TEXT */
.toggle-auth {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.toggle-auth a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.toggle-auth a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* TERMS TEXT */
.login-container p[style*="font-size: 12px"] {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    line-height: 1.5;
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
    .login-container {
        padding: 36px 28px 28px;
    }

    .login-title {
        font-size: 24px;
    }

    .social-buttons {
        flex-direction: column;
    }

    .btn-social {
        width: 100%;
    }
}