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

:root {
    --auth-primary: #17453b;
    --auth-secondary: #ff8f4a;
    --auth-secondary-deep: #de6f32;
    --auth-surface: rgba(255, 255, 255, 0.92);
    --auth-border: rgba(23, 69, 59, 0.1);
    --auth-text: #21312c;
    --auth-muted: #70827b;
}

body {
    background:
        radial-gradient(circle at top left, rgba(255, 143, 74, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(23, 69, 59, 0.18), transparent 32%),
        linear-gradient(135deg, #f5efe7 0%, #eef3f1 100%);
    font-family: 'Poppins', sans-serif;
    color: var(--auth-text);
}

.auth-card {
    backdrop-filter: blur(14px);
    background: var(--auth-surface);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 30px 60px rgba(27, 43, 38, 0.16);
    overflow: hidden;
    min-height: 550px;
}

.om-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 24px;
    font-size: 2.7rem;
    background: linear-gradient(135deg, #ff8f4a 0%, #de6f32 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: bold;
    line-height: 1;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--auth-secondary), #f4b24c);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 12px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(222, 111, 50, 0.28);
    color: white;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    padding: 12px;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 52px;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--auth-muted);
    cursor: pointer;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    padding: 0 14px;
    position: absolute;
    right: 0;
    top: 0;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--auth-primary);
    outline: none;
}

.form-control:focus {
    border-color: rgba(222, 111, 50, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(222, 111, 50, 0.14);
}

.auth-hero {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 40%),
        linear-gradient(135deg, #17453b 0%, #2a6a59 45%, #ff8f4a 100%);
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08));
    content: "";
    inset: 0;
    position: absolute;
}

.hero-watermark {
    font-size: 15rem;
    position: absolute;
    color: white;
    opacity: 0.1;
    right: -20px;
    bottom: -40px;
    line-height: 1;
    user-select: none;
}

/* --- Entry Animations --- */
.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-copy { color: var(--auth-muted); }

.auth-link {
    color: var(--auth-primary);
    font-weight: 600;
}

.auth-link:hover { color: var(--auth-secondary-deep); }
.alert { border-radius: 14px; }

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
