/* STORYLINER Auth Page - Pen Sketch Style */

@import url('pen-sketch.css');

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--paper-white);
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 27px,
        var(--sketch-light) 27px,
        var(--sketch-light) 28px
    );
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    background: var(--paper-white);
    border: var(--sketch-border-thick);
    box-shadow: 8px 8px 0 var(--ink-black);
    position: relative;
}

.auth-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--ink-black);
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.auth-logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -10px;
    right: -10px;
    height: 3px;
    background: var(--ink-black);
    transform: skew(-1deg);
}

.auth-subtitle {
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tab Switcher */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: var(--sketch-border);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--sketch-transition);
    position: relative;
}

.auth-tab.active {
    background: var(--paper-white);
    border-bottom: 3px solid var(--ink-black);
}

.auth-tab:hover:not(.active) {
    background: var(--sketch-light);
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 14px;
    background: var(--paper-white);
    border: none;
    border-bottom: var(--sketch-border);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--ink-black);
    transition: var(--sketch-transition);
}

.form-input:focus {
    outline: none;
    border-bottom: var(--sketch-border-thick);
    background: var(--sketch-light);
}

.form-input::placeholder {
    color: var(--sketch-medium);
    font-style: italic;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    background: var(--paper-white);
    color: var(--ink-black);
    border: var(--sketch-border);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 5px 5px 0 var(--ink-black);
    transition: var(--sketch-transition);
}

.auth-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink-black);
}

.auth-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--ink-black);
}

.auth-btn.primary {
    background: var(--ink-black);
    color: var(--paper-white);
}

/* Google Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--paper-white);
    border: var(--sketch-border);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 2px;
    background: var(--ink-black);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    padding: 0 15px;
    background: var(--paper-white);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Links */
.auth-link {
    color: var(--ink-black);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: var(--sketch-transition);
}

.auth-link:hover {
    border-bottom: 2px solid var(--ink-black);
}

/* Footer */
.auth-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: var(--sketch-border);
    text-align: center;
}

.auth-footer p {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Messages */
.auth-message {
    padding: 15px;
    margin-bottom: 20px;
    border: var(--sketch-border);
    background: var(--paper-white);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 var(--ink-black);
}

.auth-message.error {
    background: var(--ink-black);
    color: var(--paper-white);
}

.auth-message.success {
    border-left-width: 5px;
}

/* Loading State */
.auth-loading {
    text-align: center;
    padding: 20px;
}

.loading-dots {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 40px 30px;
    }

    .auth-logo h1 {
        font-size: 2rem;
    }

    .auth-btn {
        padding: 14px;
        font-size: 13px;
    }
}