/* Auth Pages — Dark Theme with Coral Accent */

/* Full-page gradient background */
.gr-auth-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0f18 40%, #14100f 70%, #0a0a0f 100%);
}

.gr-auth {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px !important;
    position: relative;
    overflow: hidden;
}

/* Decorative background circles */
.gr-auth::before,
.gr-auth::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.gr-auth::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 91, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.gr-auth::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 148, 90, 0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
}

/* Inner wrapper */
.gr-auth__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
}

/* Logo */
.gr-auth__logo {
    display: block;
    transition: opacity 0.3s ease;
}

.gr-auth__logo:hover {
    opacity: 0.8;
}

.gr-auth__logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Card */
.gr-auth__card {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 36px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

/* Gradient accent bar on top */
.gr-auth__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #ff6b5b, #e8945a);
}

/* Title */
.gr-auth__title {
    font-family: var(--gr-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gr-white);
    text-align: center;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

/* Subtitle */
.gr-auth__subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 28px 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Form */
.gr-auth__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form groups */
.gr-auth__form .gr-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gr-auth__form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
}

.gr-auth__form label .error {
    color: #e53935;
    font-weight: 400;
    font-size: 0.75rem;
}

/* Base input styles */
.gr-auth__form input[type="text"],
.gr-auth__form input[type="email"],
.gr-auth__form input[type="password"],
.gr-auth__form input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: var(--gr-font-body);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
    outline: none;
}

.gr-auth__form input:focus {
    border-color: #ff6b5b;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.15);
}

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

/* Input wrapper with icon */
.gr-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gr-input-wrap i {
    position: absolute;
    left: 16px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gr-auth__form .gr-input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: var(--gr-font-body);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
    outline: none;
}

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

.gr-input-wrap input:focus {
    border-color: #ff6b5b;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.15);
}

.gr-input-wrap:focus-within i {
    color: #ff6b5b;
}

/* Submit button */
.gr-auth__btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff6b5b 0%, #e8945a 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #ffffff;
    font-family: var(--gr-font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

.gr-auth__btn:hover {
    background-position: 100% 50%;
    box-shadow: 0 6px 24px rgba(255, 107, 91, 0.3);
    transform: translateY(-1px);
}

.gr-auth__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 91, 0.2);
}

/* Errors */
.gr-auth__errors {
    color: #e53935;
    font-size: 0.8125rem;
    text-align: center;
    min-height: 0;
}

.gr-auth__errors:empty {
    display: none;
}

.gr-auth__error {
    display: block;
    color: #e53935;
    font-size: 0.8125rem;
    margin-bottom: 4px;
}

/* Links */
.gr-auth__links {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8125rem;
}

.gr-auth__links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s ease;
}

.gr-auth__links a:hover {
    color: #ff6b5b;
}

/* Logged-in state */
.gr-auth__logged {
    text-align: center;
}

.gr-auth__logged p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Footer */
.gr-auth__footer {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .gr-auth {
        padding: 24px 16px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .gr-auth__card {
        padding: 32px 24px;
        border-radius: 14px;
    }

    .gr-auth__title {
        font-size: 1.3rem;
    }

    .gr-auth__links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .gr-auth::before {
        width: 300px;
        height: 300px;
        top: -60px;
        right: -60px;
    }

    .gr-auth::after {
        width: 250px;
        height: 250px;
        bottom: -50px;
        left: -50px;
    }
}
