/* Grafitoon Auth System - Shared Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #c5d5f7 0%, #d5c5f7 50%, #f7c5e5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container h1 {
    font-size: 28px;
    font-weight: 300;
    background: linear-gradient(135deg, #7c8db5 0%, #a89dc7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.logo-container p {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
    font-weight: 300;
}

.page-title {
    color: #5c6d95;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(209, 250, 229, 0.6);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(254, 202, 202, 0.6);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-info {
    background: rgba(219, 234, 254, 0.6);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #5c6d95;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(124, 141, 181, 0.25);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.5);
    color: #334155;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8888b7;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(136, 136, 183, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.btn {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #7c8db5 0%, #a89dc7 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(124, 141, 181, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(124, 141, 181, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: #5c6d95;
    border: 1px solid rgba(124, 141, 181, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(124, 141, 181, 0.2);
}

.divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.45);
    padding: 0 15px;
    color: #94a3b8;
    font-size: 13px;
}

.link-group {
    text-align: center;
    margin-top: 20px;
}

.link-group a {
    color: #7c8db5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #5c6d95;
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 13px;
}

.footer a {
    color: #7c8db5;
    text-decoration: none;
}

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

.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background: rgba(124, 141, 181, 0.2);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
}

.strength-weak { width: 33%; background: #ef4444; }
.strength-medium { width: 66%; background: #f59e0b; }
.strength-strong { width: 100%; background: #10b981; }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 25px;
    }
    
    .page-title {
        font-size: 20px;
    }
}

/* Loading spinner */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
