/* Enhanced Authentication Styles */
.main-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px); /* Adjust based on header/footer height */
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--background-rgb), 0.8) 0%, rgba(var(--background-rgb), 0.6) 100%);
}

.auth-container {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Auth Header Section */
.auth-header {
    margin-bottom: 30px;
    position: relative;
}

.auth-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-text);
    padding: 2px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.auth-container h1 {
    color: var(--primary-text);
    margin-bottom: 10px;
    font-size: 1.8em;
    position: relative;
    display: inline-block;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.auth-subtitle {
    color: var(--secondary-text);
    margin-bottom: 25px;
    font-size: 0.95em;
    opacity: 0.8;
}

/* Social Login Buttons */
.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
}

/* Hide the default Google Sign-In button */
.g_id_signin {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.social-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--background-primary);
    color: var(--secondary-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-auth-button.google {
    background-color: #ffffff;
    color: #4285F4;
    border-color: #dadce0;
    position: relative;
    padding-left: 50px;
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
}

.social-auth-button.google::before {
    content: '';
    position: absolute;
    left: 12px;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yMC42NiAxMi42OWMwLS41Ny0uMDUtMS4xOS0uMTUtMS44MUgxMnYzLjQyaDQuODRhNC4xNCA0LjE0IDAgMCAxLTEuNzkgMi43MnYyLjI2aDIuOWE4Ljc3IDguNzcgMCAwIDAgMi42OC02LjU5eiIgZmlsbD0iIzQyODVGNCIvPjxwYXRoIGQ9Ik0xMiAyMWMzLjI0IDAgNS45NS0xLjA4IDcuOTMtMi45MWwtMi45LTIuMjZjLS44LjU0LTEuODMuOS0zLjAzLjktMi4zMyAwLTQuMzEtMS41OC01LjAyLTMuN0g2djIuMzRBOC45OCA4Ljk4IDAgMCAwIDEyIDIxeiIgZmlsbD0iIzM0QTg1MyIvPjxwYXRoIGQ9Ik02Ljk4IDEzLjAzYy0uMTgtLjUzLS4yOC0xLjEtLjI4LTEuNjhzLjEtMS4xNS4yOC0xLjY4VjcuMzNIMy45N0E4Ljk4IDguOTggMCAwIDAgMyAxMmMwIDEuNjEuNDMgMy4xMiAxLjE4IDQuNDNsMS44MS0xLjR6IiBmaWxsPSIjRkJCQzA1Ii8+PHBhdGggZD0iTTEyIDYuNThjMS4zMiAwIDIuNS40NSAzLjQ0IDEuMzVsMi41OC0yLjU5QzE2LjA2IDMuNjkgMTQuMTYgMyAxMiAzYTguOTggOC45OCAwIDAgMC04LjAzIDQuOTVsMi45NCAyLjI2Yy43MS0yLjEyIDIuNjktMy43IDUuMDItMy43eiIgZmlsbD0iI0VBNDMzNSIvPjwvZz48L3N2Zz4=');
    background-repeat: no-repeat;
    background-size: contain;
}

.social-auth-button.google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    position: relative;
    background-color: var(--card-background);
    padding: 0 15px;
    color: var(--secondary-text);
    font-size: 0.9em;
    opacity: 0.7;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-text);
    font-weight: bold;
    font-size: 0.95em;
}

.form-group i {
    margin-right: 8px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--secondary-text);
    opacity: 0.7;
}

.form-group input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--secondary-text);
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 1em;
}

.form-group input:focus {
    border-color: var(--primary-text);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--secondary-text);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary-text);
}

.forgot-password {
    color: var(--primary-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-text);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.auth-button:hover {
    background-color: #d43a50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    text-align: left;
}

.success-message {
    color: #2ecc71;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
    text-align: left;
    font-weight: bold;
}

.switch-auth {
    margin-top: 25px;
    font-size: 0.95em;
    color: var(--secondary-text);
}

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

.switch-auth a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 600px) {
    .main-content-centered {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-container {
        padding: 25px;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    .auth-logo {
        width: 60px;
        height: 60px;
    }

    .auth-container h1 {
        margin-bottom: 10px;
        font-size: 1.5em;
    }

    .auth-subtitle {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 12px 12px 12px 36px;
    }

    .auth-button {
        padding: 12px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}