/* =============================================
   Auth Pages — Shared Styles
   Used by: login.html, register.html, etc.
   ============================================= */

/* Page layout */
body {
    background-color: #0B1020;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    font-family: 'Instrument Sans', sans-serif;
}

/* Card wrapper border glow animation */
@keyframes borderGlow {
    0%   { background-position: 0% 100%; opacity: 0; }
    8%   { background-position: 8% 92%;  opacity: 1; }
    80%  { background-position: 92% 8%;  opacity: 1; }
    95%  { background-position: 100% 0%; opacity: 0; }
    100% { background-position: 100% 0%; opacity: 0; }
}

/* Outer card wrapper — full width with max-width cap */
.auth-card-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 2px;
    background: #0B1020;
    box-shadow: inset 0px 2px 0px rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 1280px;
}

/* Animated glow border via pseudo-element */
.auth-card-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at center, rgba(75, 43, 224, 0.4), #0B1020);
    background-size: 300% 300%;
    animation: borderGlow 10s linear infinite;
    z-index: 0;
}

/* Inner card — semi-transparent dark fill */
.auth-card-inner {
    background: rgba(11, 16, 32, 0.5);
    border-radius: 22px;
    padding: 52px 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}

/* Subtle top radial glow inside card */
.auth-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(ellipse at top, rgba(39, 62, 120, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

/* Content container — 430px centered */
.auth-content {
    max-width: 430px;
    margin: 0 auto;
}

/* Logo */
.auth-logo {
    width: 260px;
    display: block;
    margin: 0 auto 36px;
}

/* Heading */
.auth-heading {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Subtitle */
.auth-subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.5;
}

/* Form */
.auth-form {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Form label */
.form-label-custom {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    display: block;
}

/* Input wrapper */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* Input icon */
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    pointer-events: none;
}

/* Text input */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 13px 16px 13px 44px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Instrument Sans', sans-serif;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

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

.form-input:focus {
    border-color: #20F0FF;
    background: rgba(255, 255, 255, 0.07);
}

/* Forgot password link */
.forgot-password {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #20F0FF;
    margin-top: -12px;
    margin-bottom: 28px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #ffffff;
}

/* Primary CTA button */
.btn-auth {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #FF4D00;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.2s ease;
    margin-bottom: 28px;
}

.btn-auth:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Footer text */
.auth-footer-text {
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
}

.auth-footer-text a {
    color: #20F0FF;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer-text a:hover {
    color: #ffffff;
}

/* Wide content container — for 2-col form pages */
.auth-content--wide {
    max-width: 860px;
}

/* 2-column form grid */
.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    padding-bottom: 30px;
}

.auth-form-grid .form-group {
    display: flex;
    flex-direction: column;
}

/* Input without leading icon */
.form-input--plain {
    padding: 13px 16px;
}

/* Select dropdown styled to match inputs */
.form-select-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 13px 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-family: 'Instrument Sans', sans-serif;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.form-select-custom option {
    background: #0B1020;
    color: #ffffff;
}

.form-select-custom:focus {
    border-color: rgba(75, 43, 224, 0.7);
    background-color: rgba(255, 255, 255, 0.07);
}

/* Centered button variant */
.btn-auth--centered {
    width: auto;
    min-width: 280px;
    display: block;
    margin: 0 auto 28px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 60px 16px;
    }
    .auth-card-inner {
        padding: 40px 28px;
    }
    .auth-heading {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 40px 12px;
    }
    .auth-card-inner {
        padding: 32px 20px;
    }
    .auth-logo {
        width: 200px;
    }
}

@media (max-width: 640px) {
    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .btn-auth--centered {
        width: 100%;
        min-width: unset;
    }
}
