/* =========================================
1. Root Variables & Global Reset

   ========================================= */
:root {
    --bg-gradient-center: #3d5960;
    --bg-gradient-edge: #233439;
    --text-muted-custom: #a8b8bb;
    --input-border-color: rgba(255, 255, 255, 0.2);
    --btn-login-bg: #98abb0;
    --btn-login-hover: #a8babf;
    --btn-login-text: #26383d;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: radial-gradient(circle at center, #425e65 0%, #293d43 60%, #1c2b30 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* =========================================
   2. Top Header Navigation
   ========================================= */
.top-nav {
    padding: 1.75rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: #ffffff;
}

.btn-signup {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    padding: 0.4rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-signup:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* =========================================
   3. Center Layout Container
   ========================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-box {
    width: 100%;
    max-width: 380px;
}

.logo-icon {
    max-height: 75px;
    width: auto;
    margin-bottom: 3.5rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* =========================================
   4. Form Controls & Custom Input Styling
   ========================================= */
.form-group-custom {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label-custom {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.form-control-custom {
    background-color: transparent !important;
    border: none;
    border-bottom: 1px solid var(--input-border-color);
    border-radius: 0;
    color: #ffffff !important;
    font-size: 0.98rem;
    padding: 0.5rem 0;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control-custom:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
    background-color: transparent !important;
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Browser Autofill Background Override */
.form-control-custom:-webkit-autofill,
.form-control-custom:-webkit-autofill:hover,
.form-control-custom:-webkit-autofill:focus,
.form-control-custom:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background-color: transparent !important;
}

/* Seamless Password Input Wrapper & Eye Button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 2.2rem !important; /* Breathing room for the eye icon */
}

.btn-toggle-password-inline {
    position: absolute;
    right: 0.1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    padding: 0.35rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    outline: none !important;
    box-shadow: none !important;
}

.btn-toggle-password-inline:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.btn-toggle-password-inline.active {
    color: #deede8;
}

/* Forgot Password Link */
.forgot-password-link {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.3px;
}

.forgot-password-link:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

/* =========================================
   5. Buttons & Notifications
   ========================================= */
.btn-login {
    background-color: var(--btn-login-bg);
    color: var(--btn-login-text);
    border: none;
    border-radius: 2px;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    margin-top: 1.5rem;
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
    background-color: var(--btn-login-hover);
    color: var(--btn-login-text);
}

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
}

.custom-toast {
    background: rgba(28, 43, 48, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* =========================================
   6. Custom Logo CSS & Floating Animation
   ========================================= */
.logo-scale-wrapper {
    display: flex;
    justify-content: center;
    transform: scale(0.4);
    transform-origin: top center;
    height: 110px;
    margin-bottom: 10px;
}

.logo-wrapper {
    display: flex;
    align-items: baseline;
    position: relative;
}

.text {
    font-size: 130px;
    color: #deede8;
    font-weight: 300;
    letter-spacing: 1px;
}

.dandelion-i {
    position: relative;
    width: 30px;
    height: 95px;
    margin: 0 10px;
}

.stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 170px;
    background: linear-gradient(to top, #deede8 0px, #deede8 110px, #233439 110px, #233439 100%);
    z-index: 2;
}

.center-dot {
    position: absolute;
    bottom: 165px;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 22px;
    height: 22px;
    background-color: #233439;
    border-radius: 50%;
    z-index: 3;
}

.fluff {
    position: absolute;
    bottom: 165px;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(
            from 42deg,
            transparent 0deg,
            transparent 3deg,
            #f2f5f6 3deg,
            #f2f5f6 360deg
    );
    z-index: 1;
}

@keyframes seedFloat {
    0% {
        transform: translate(0, 0) rotate(22deg);
    }
    50% {
        transform: translate(4px, -10px) rotate(26deg);
    }
    100% {
        transform: translate(0, 0) rotate(22deg);
    }
}

.seed {
    position: absolute;
    bottom: 220px;
    left: 70px;
    width: 40px;
    height: 60px;
    z-index: 4;
    animation: seedFloat 5s ease-in-out infinite;
    will-change: transform;
}

.seed-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50% 50% 2px 2px;
}

.seed-stem-line {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 38px;
    background-color: #ffffff;
}

.tuft-container {
    position: absolute;
    bottom: 44px;
    left: 50%;
}

.hair {
    position: absolute;
    bottom: 0;
    left: -0.5px;
    width: 1px;
    height: 16px;
    background-color: #ffffff;
    transform-origin: bottom center;
    border-radius: 1px;
}

.hair:nth-child(1) { transform: rotate(-50deg); }
.hair:nth-child(2) { transform: rotate(-30deg); }
.hair:nth-child(3) { transform: rotate(-10deg); }
.hair:nth-child(4) { transform: rotate(10deg); }
.hair:nth-child(5) { transform: rotate(30deg); }
.hair:nth-child(6) { transform: rotate(50deg); }

/* =========================================
   7. Cookie Consent Banner
   ========================================= */
.cookie-banner-glass {
    background: rgba(20, 30, 35, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -8px 32px 0 rgba(0, 0, 0, 0.4);
}

.cookie-banner-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.cookie-banner-title i {
    color: #98abb0;
}

.btn-cookie-decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-cookie-accept {
    background-color: #98abb0;
    color: #26383d;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-cookie-accept:hover {
    background-color: #a8babf;
    color: #26383d;
    transform: translateY(-1px);
}