/* =============================================
   MODERN AUTH REDESIGN (Glassmorphism Centered)
   ============================================= */

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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('Images/sign up image.png') no-repeat center top;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

/* Dark Overlay with Blur */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1;
   
}

.auth-page {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 60px 40px 40px; /* More top padding for back-home link */
    animation: fadeIn 0.8s ease-out;
    display: flex;
    justify-content: center;
}

/* Back to Home Styling */
.back-home {
    position: absolute;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-home:hover {
    color: #fff;
    transform: translateX(-5px);
}

.back-home svg {
    transition: transform 0.3s ease;
}

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

.auth-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 36px;
    padding: 42px 42px 38px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    color: #fff;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 520px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.auth-card::-webkit-scrollbar {
    display: none;
   
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px; /* Space between form and image */
    width: 100%;
    flex-wrap: wrap;
}

.auth-form-column {
    flex: 1 1 520px;
    width: 100%;
    max-width: 520px;
}

.auth-image-column {
    flex: 1 1 420px;
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Branded Pack Image - Now separate from card */
.auth-card-pack {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 22px 50px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.auth-header {
    margin-bottom: 30px;
}

.welcome-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.brand-keziz {
    color: #4caf50; /* Brighter green for contrast on dark */
    font-weight: 800;
}

.auth-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.auth-toggle {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.auth-toggle a.toggle-link {
    color: #81c784;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.auth-toggle a.toggle-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.google-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Main Form */
.auth-main-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
}

.form-group input {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.06);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #81c784;
    box-shadow: 0 0 0 4px rgba(129, 199, 132, 0.1);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
}

.forgot-link {
    font-size: 12px;
    color: #81d4fa;
    text-decoration: none;
    font-weight: 500;
}

.submit-btn {
    background: #2e7d32;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: #388e3c;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.4);
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .auth-container {
        flex-direction: column;
        gap: 36px;
    }
    .auth-image-column {
        order: -1; /* Image on top for mobile */
    }
    .auth-card-pack {
        max-width: 320px;
    }
    .social-login {
        flex-direction: column;
        align-items: stretch;
    }
    .social-icons {
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .auth-page {
        padding: 18px 14px 30px;
    }
    .auth-card {
        padding: 32px 22px 30px;
    }
    .auth-title {
        font-size: 32px;
    }
    .back-home {
        top: 18px;
        left: 18px;
        font-size: 13px;
    }
    .back-home svg {
        width: 18px;
        height: 18px;
    }
    .auth-card-pack {
        max-width: 260px;
    }
    .google-btn, .social-icon-btn {
        width: 100%;
    }
    .social-icons {
        width: 100%;
    }
}
