/* content of auth.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #fbbd18;
    --primary-hover: #e0a800;
    --text-color: #ffffff;
    --bg-dark: #121212;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.auth-page {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    background-image: url('../images/banner-5.jpg');
    /* Using existing banner */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background Overlay */
body.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Moving Particles / Shapes (Simplified CSS animation) */
.auth-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(50px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
    border-radius: 50%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #ff5722;
    bottom: -50px;
    right: -50px;
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Glassmorphism Card */
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    animation: slideUp 0.8s ease-out;
    position: relative;
    z-index: 10;
    margin: 20px;
    /* Ensure spacing on small screens */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Specificity boost and !important to override defaults/style.css */
input.form-control-auth {
    width: 100%;
    padding: 12px 15px 12px 15px;
    /* Adjust padding */
    height: auto !important;
    /* Override style.css height */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    color: #fff !important;
    font-size: 16px;
    /* Better for mobile to prevent zoom */
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    z-index: 1;
    position: relative;
}

input.form-control-auth:focus {
    border-color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(251, 189, 24, 0.2);
}

/* Autofill Fix for Dark Theme */
input.form-control-auth:-webkit-autofill,
input.form-control-auth:-webkit-autofill:hover,
input.form-control-auth:-webkit-autofill:focus,
input.form-control-auth:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1e1e1e inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-label {
    position: absolute;
    left: 15px;
    top: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Floating Label Logic */
.form-control-auth:focus~.form-label,
.form-control-auth:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--primary-color);
    background: #121212;
    /* Match body bg */
    padding: 0 5px;
    border-radius: 5px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2;
}

.input-icon:hover {
    color: #fff;
}

/* Button */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 189, 24, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 189, 24, 0.4);
}

.btn-auth::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-auth:active::after {
    width: 300px;
    height: 300px;
}

/* Links */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #fff;
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
}

.forgot-password a:hover {
    color: var(--primary-color);
}

/* Checkbox */
.custom-control {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.custom-control-input {
    display: none;
}

.custom-control-label {
    position: relative;
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.custom-control-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s;
}

.custom-control-input:checked~.custom-control-label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-control-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-control-input:checked~.custom-control-label::after {
    opacity: 1;
}

/* Animations */
.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        padding: 25px 20px;
        width: 100%;
        margin: 15px;
        max-width: 100%;
    }

    .auth-title {
        font-size: 24px;
    }
}