/* Cosmic Auth Theme - Overrides/Extensions of style.css */

/* Use variables from style.css, do not redefine here unless necessary */

body {
    /* Inherit background from style.css */
    /* If you want a specific override for auth pages, uncomment below */
    /* background: url('../images/admin-bg.jpg') no-repeat center center fixed; */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Specific Wrapper */
.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: inline-block;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 18px;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    /* Space for icon */
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.form-control:focus+.input-icon {
    color: var(--primary);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--secondary-accent));
    /* Match style.css */
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.6);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(237, 66, 69, 0.2);
    border: 1px solid rgba(237, 66, 69, 0.5);
    color: #ff5555;
}

.alert-success {
    background: rgba(59, 165, 92, 0.2);
    border: 1px solid rgba(59, 165, 92, 0.5);
    color: #55ff55;
}