:root {
    --bg-gradient: linear-gradient(135deg, #d3e5ff 0%, #edd8ff 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: rgba(24, 38, 90, 0.12);
    
    --primary-color: #0066ff; 
    --primary-hover: #004ecc;
    --text-main: #1a2442; 
    --text-muted: #4e617d; 
    
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(26, 36, 66, 0.15); 
    --input-focus-border: #0066ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 16px;  
}


body::before {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(images/background-image-1_birefnet.png);
  background-repeat: no-repeat;
  background-position: top;
  filter: blur(4px);
  z-index: -1;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 102, 255, 0.25) rgba(255, 255, 255, 0.3);
}


.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.7;
}
.glow-1 {
    width: 400px;
    height: 400px;
    background: #94bfff;
    top: -80px;
    left: -80px;
}
.glow-2 {
    width: 450px;
    height: 450px;
    background: #b3ffd0;
    bottom: -120px;
    right: -80px;
}
.glow-3 {
    width: 350px;
    height: 350px;
    background: #cbbaff;
    top: 35%;
    right: 15%;
}


.container {
    width: 100%;
    max-width: 440px; 
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}


.brand-section {
    text-align: center;
}
.brand-section .logo-icon {
    width: 55px;
    height: 55px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}
.brand-section h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.brand-section p {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    padding: 0 10px;
}


.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px 0 var(--glass-shadow), 
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    width: 100%;
}


.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.input-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    padding-left: 2px;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-main);
    font-size: 16px;
    pointer-events: none;
    opacity: 0.8;
}
.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    font-size: 14.5px;
    color: var(--text-main);
    outline: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.input-wrapper input:focus {
    background: #ffffff;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
}
.input-wrapper input::placeholder {
    color: #7a8aa2;
}


.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap; 
}
.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}


.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
    transition: all 0.2s ease;
    margin-top: 5px;
    width: 100%;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 28px rgba(0, 102, 255, 0.35);
    transform: translateY(-1px);
}


.card-footer {
    text-align: center;
    margin-top: 15px;
}


@media screen and (max-width: 480px) {
    body {
        padding: 12px;
        align-items: flex-start; 
        padding-top: 30px;
    }
    
    .bg-glow {
        display: none; 
    }

    .container {
        gap: 15px;
    }

    .brand-section h1 {
        font-size: 24px;
    }

    .brand-section p {
        font-size: 13px;
    }

    .glass-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .input-wrapper input {
        padding: 12px 14px 12px 42px; 
        font-size: 14px;
    }
}


::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); }
::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.25);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 102, 255, 0.5); }