@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--t-bg, #050505);
    color: var(--t-text, #fff);
    height: 100vh;
    overflow: hidden;
    background-image: radial-gradient(circle at 10% 20%, var(--t-accent-soft, rgba(0, 123, 255, 0.1)) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--t-accent-glow, rgba(50, 0, 100, 0.1)) 0%, transparent 40%);
}

.container {
    display: flex;
    height: 100%;
    width: 100%;
    perspective: 1000px;
}

/* Left Side - Visual */
.visual-side {
    flex: 1.5;
    background-color: var(--t-bg, #020202);
    position: relative;
    overflow: hidden;
}

.visual-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/assets/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    filter: contrast(1.1) saturate(1.1);
    transition: transform 10s ease;
}

.visual-side:hover::before {
    transform: scale(1.05);
}

/* Right Side - Form */
.form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    min-width: 400px;
    background: var(--t-surface, rgba(10, 10, 10, 0.95));
    backdrop-filter: blur(20px);
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.form-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out forwards;
}

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

h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--t-text, #fff) 0%, var(--t-accent, #a5b4fc) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1rem;
    color: var(--t-text-muted, #a1a1aa);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}











/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--t-text-muted, #aaa);
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--t-input-bg, rgba(255, 255, 255, 0.1));
    border: 1px solid var(--t-border, rgba(255, 255, 255, 0.2));
    border-radius: 6px;
    margin-right: 0.8rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--t-accent, #3b82f6);
    border-color: var(--t-accent, #3b82f6);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '\2713';
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--t-accent, #2563eb) 0%, var(--t-accent-2, #1d4ed8) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px var(--t-accent-glow, rgba(37, 99, 235, 0.4));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--t-accent-glow, rgba(37, 99, 235, 0.5));
    background: linear-gradient(135deg, var(--t-accent-2, #3b82f6) 0%, var(--t-accent, #2563eb) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer Link */
.login-link {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--t-text-muted, #888);
}

.login-link a {
    color: var(--t-accent, #60a5fa);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-link a:hover {
    color: var(--t-accent-2, #93c5fd);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        overflow-y: auto;
    }

    .visual-side {
        flex: none;
        height: 250px;
    }

    .form-side {
        flex: none;
        padding: 40px 24px;
        min-height: calc(100vh - 250px);
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
    }

    body {
        overflow: auto;
        height: auto;
    }
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--t-text-muted, #a1a1aa);
    font-size: 1rem;
    transition: color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.toggle-password:hover {
    color: var(--t-accent, #60a5fa);
}









 



.input-group {
 position: relative;
}

.input {
 border: solid 1.5px var(--t-border, #9e9e9e);
 border-radius: 1rem;
 background: none;
 padding: 1rem;
 font-size: 1rem;
 color: var(--t-text, #f5f5f5);
 transition: border 150ms cubic-bezier(0.4,0,0.2,1);
 width: 100%;
 box-sizing: border-box;
}

.user-label {
 position: absolute;
 top: 0;                                          /* anchors to top of input-group */
 left: 15px;
 color: var(--t-text-muted, #9ca3af);
 pointer-events: none;
 transform: translateY(1rem);                     /* drops label to centre of input */
 transition: 150ms cubic-bezier(0.4,0,0.2,1);
 font-size: 1rem;
 line-height: 1;
}

.input:focus,
.input:not(:placeholder-shown) {
 outline: none;
 border: 1.5px solid #E31E24;
}

.input:focus ~ .user-label,
.input:not(:placeholder-shown) ~ .user-label {
 transform: translateY(-50%) scale(0.8);          /* floats label to sit on top border */
 background-color: var(--t-surface, #111);
 padding: 0 .4em;
 color: #E31E24;
}
