/* stÖkd Login Modal Styles */
.stokd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stokd-modal.active {
    opacity: 1;
}

.stokd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.stokd-modal-content {
    position: relative;
    max-width: 500px;
    margin: 10vh auto;
    background: var(--color-bg-warm, #FAF9F7);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.stokd-modal.active .stokd-modal-content {
    transform: translateY(0);
}

.stokd-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.stokd-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.stokd-modal-header {
    margin-bottom: 2rem;
}

.stokd-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.stokd-modal-header p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.stokd-form-group {
    margin-bottom: 1.5rem;
}

.stokd-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.stokd-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', monospace;
    border: 2px solid #E5E2DC;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.stokd-form-group input:focus {
    outline: none;
    border-color: var(--color-primary-cyan, #2DD4BF);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.stokd-form-group input.error {
    border-color: #ef4444;
}

.stokd-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

.stokd-error-message {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.stokd-btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--color-primary-cyan, #2DD4BF);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stokd-btn-primary:hover {
    background: #1ac5b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

.stokd-btn-primary:active {
    transform: translateY(0);
}

.stokd-modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E2DC;
    text-align: center;
}

.stokd-modal-footer p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.stokd-modal-footer a {
    color: var(--color-primary-cyan, #2DD4BF);
    text-decoration: none;
    font-weight: 600;
}

.stokd-modal-footer a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .stokd-modal-content {
        margin: 5vh 1rem;
        padding: 1.5rem;
    }

    .stokd-modal-header h2 {
        font-size: 1.5rem;
    }
}
