@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Josefin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1c262f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    line-height: 1.6;
}

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

.login-card {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.header {
    margin-bottom: 40px;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: #1c262f;
    letter-spacing: 1px;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 300;
}

.login-form {
    text-align: left;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Josefin Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    color: #333;
}

.form-group input:focus {
    outline: none;
    border-color: #0dc5a1;
    box-shadow: 0 0 0 3px rgba(13, 197, 161, 0.1);
}

.form-group input::placeholder {
    color: #999;
    font-weight: 300;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: #0dc5a1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-btn:hover:not(:disabled) {
    background: #0ba688;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(13, 197, 161, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

.form-links {
    text-align: center;
}

.form-links a {
    color: #0dc5a1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #0ba688;
    text-decoration: underline;
}

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

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
}

.signup-btn {
    width: 100%;
    padding: 16px;
    background: transparent;
    color: #0dc5a1;
    border: 2px solid #0dc5a1;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.signup-btn:hover {
    background: #0dc5a1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(13, 197, 161, 0.2);
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-badges p {
    color: #999;
    font-size: 0.85rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

/* Error Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 38, 47, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal h3 {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 500;
}

.modal p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-btn {
    padding: 12px 30px;
    background: #0dc5a1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
    transition: background 0.3s ease;
}

.modal-btn:hover {
    background: #0ba688;
}

/* Responsive */
@media (max-width: 500px) {
    body {
        padding: 15px;
    }
    
    .login-card {
        padding: 40px 25px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .trust-badges p {
        justify-content: center;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}