.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    position: relative;
    background-image: url('../images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 1) 50%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.auth-container .auth-wrapper {
    position: relative;
    width: calc(100% - 3rem);
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: clamp(12px, 2vw, 20px);
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out;
}

.auth-container .auth-tabs {
    position: relative;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--bg-color);
    padding: 0.4rem;
    border-radius: 10px;
}

.auth-container .auth-tab {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark-low);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.auth-container .auth-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-container .auth-tab:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.auth-container .auth-tab.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.auth-container .auth-tab.active::before {
    opacity: 1;
    transform: scale(1);
}

.auth-container .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-container .auth-header h1 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: clamp(0.3rem, 1vw, 0.5rem);
    color: var(--text-dark);
    font-weight: 700;
}

.auth-container .auth-header p {
    color: var(--text-dark-low);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.auth-container .auth-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.auth-container .auth-form::-webkit-scrollbar {
    display: none; 
}

.auth-container .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.auth-container .form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.auth-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.auth-container .input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.auth-container .input-wrapper input {
    width: 100%;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(0.8rem, 2vw, 1rem);
    padding-left: clamp(2.4rem, 6vw, 2.8rem);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: clamp(8px, 2vw, 12px);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.auth-container .input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(113, 174, 71, 0.15);
    background: white;
}

.auth-container .toggle-password {
    position: absolute;
    right: 1rem;
    color: var(--text-dark-low);
    transition: all 0.3s ease;
}

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

.auth-container .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-container .remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-container .forgot-password {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-container .forgot-password:hover {
    color: var(--primary-color-dark);
}

.auth-container .auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: clamp(0.8rem, 2.5vw, 1rem);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-dark));
    color: var(--text-light);
    border-radius: clamp(8px, 2vw, 12px);
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    transform-origin: center;
}

.auth-container .auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.auth-container .auth-submit:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 25px rgba(113, 174, 71, 0.4);
}

.auth-container .auth-submit:hover::before {
    left: 100%;
}

.auth-container .auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    color: var(--text-dark);
    border-radius: 12px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.auth-container .auth-back:hover {
    background: var(--bg-color-dark);
    transform: translateY(-2px);
}

.auth-container .error-message {
    display: none;
    color: #dc3545;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.auth-container .input-wrapper.error input {
    border-color: #dc3545;
}

.auth-container .input-wrapper.error + .error-message {
    display: block;
}

.auth-container .input-wrapper.success input {
    border-color: var(--primary-color);
}

.auth-container .divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark-low);
    margin-bottom: 1.5rem;
}

.auth-container .divider::before,
.auth-container .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bg-color);
}

.forms-container {
    position: relative;
    overflow: visible;
    min-height: 400px;
}

.auth-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
}

.auth-content.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.auth-container .brand-icon {
    top: 3rem;
    width: clamp(160px, 20vw, 200px);
    height: clamp(80px, 15vw, 120px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: clamp(10px, 2vw, 20px);
    padding: clamp(0.5rem, 1.5vw, 1rem);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.auth-container .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@media (max-height: 700px) {
    .auth-container {
        align-items: center;
    }
    
    .auth-container .auth-wrapper {
        margin: 1rem auto;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-container .auth-wrapper {
        padding: 1.5rem;
    }
    
    .auth-container .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .auth-container .auth-header h1 {
        font-size: 1.3rem;
    }

    .auth-container .brand-icon {
        width: 60px;
        height: 60px;
        top: 1.5rem;
    }
}

@media (max-height: 600px) {
    .auth-container {
        padding: 1rem 0;
        justify-content: flex-start;
    }

    .auth-container .brand-icon {
        margin-bottom: 0.5rem;
    }

    .auth-container .auth-wrapper {
        margin: 0 auto;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        width: calc(100% - 2rem);
    }

    .auth-container .auth-header {
        margin-bottom: 1rem;
    }

    .auth-container .form-group {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 420px) {
    .auth-container {
        padding: 0.5rem;
    }

    .auth-container .brand-icon {
        width: 140px;
        height: 70px;
        margin-bottom: 0.75rem;
    }

    .auth-container .auth-wrapper {
        padding: 1rem;
    }

    .auth-container .auth-tabs {
        padding: 0.3rem;
        gap: 0.3rem;
    }

    .auth-container .auth-tab {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .auth-container .form-options {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .auth-container .brand-icon {
        width: 120px;
        height: 60px;
        left: 50%;
    }

    .auth-container .auth-header h1 {
        font-size: 1.1rem;
    }

    .auth-container .input-wrapper input {
        font-size: 0.8rem;
    }

    .auth-container .error-message {
        font-size: 0.75rem;
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    .auth-container {
        align-items: flex-start;
    }

    .auth-container .brand-icon {
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 50px;
        margin: 0;
    }

    .auth-container .auth-wrapper {
        margin-top: 1rem;
    }
}

main {
    margin-top: 0;
}

/* Google Login Button Styles */
.form-divider {
    position: relative;
    text-align: center;
    margin: 0.25rem 0 0.5rem 0;
    color: #8e8e93;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    z-index: 1;
}

.form-divider span {
    background: #fff;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.google-login-btn {
    min-height:21px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    width: calc(100% - 4rem);
    max-width: 300px;
    margin: 1.5rem auto 1rem auto; /* üstte biraz boşluk, altta az */
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform-origin: center center;
    margin-bottom: 0.5rem;
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.google-login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.google-login-btn:hover {
    background: linear-gradient(135deg, #3367d6 0%, #2d8f47 50%, #f4b400 100%);
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.04); /* sadece büyüme, yukarı kayma yok */
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.4);
}

.google-login-btn:hover::before {
    left: 100%;
}

.google-login-btn:hover::after {
    opacity: 1;
}

.google-login-btn:active {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    transition: all 0.1s ease;
}

.google-login-btn i {
    font-size: 1.3rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.google-login-btn:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.google-login-btn span {
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    position: relative;
}

/* Google button focus state for accessibility */
.google-login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.2), 0 8px 30px rgba(66, 133, 244, 0.4);
}

/* Responsive adjustments for Google button */
@media (max-width: 480px) {
    .google-login-btn {
        width: calc(100% - 2rem);
        max-width: 280px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 40px;
        margin-bottom: 1.25rem;
    }
    
    .google-login-btn i {
        font-size: 1.2rem;
    }
    
    .form-divider {
        margin: 1.25rem 0 0.75rem 0;
    }
}

@media (max-width: 360px) {
    .google-login-btn {
        width: calc(100% - 1.5rem);
        max-width: 260px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        gap: 0.625rem;
        border-radius: 35px;
        margin-bottom: 1rem;
    }
    
    .google-login-btn i {
        font-size: 1.1rem;
    }
}

.auth-content form .form-group:last-of-type {
    margin-bottom: 0.5rem;
}
.auth-content form .auth-submit {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.auth-content form {
    padding-bottom: 0 !important;
}
.auth-content form .form-group {
    margin-bottom: 0.4rem;
}