/* login_styles.css */
/* Version: 2.0 */
/* Professional authentication page styles */
/* Encoding: UTF-8 */

/* Main Container */
.login-container {
    width: 550px;
    max-width: 550px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.login-container h1 {
    color: #333;
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 600;
}

.login-container>p {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    padding-left: 42px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-group small {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* Input Icons */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-icon input {
    padding-left: 42px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-primary i {
    margin-right: 8px;
}

.btn-cancel,
.btn-secondary {
    width: 100%;
    padding: 14px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-cancel:hover,
.btn-secondary:hover {
    background: #eee;
    border-color: #ccc;
}

.passkey-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px 0;
}

.passkey-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.passkey-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.passkey-button i {
    margin-right: 8px;
}

/* Info Box */
.passkey-info {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.passkey-info p {
    color: #555;
    font-size: 14px;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.passkey-info p:last-child {
    margin-bottom: 0;
}

.passkey-info strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.passkey-info ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.passkey-info ul li {
    color: #555;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Status Messages */
#login-status,
#passkey-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.status-loading {
    color: #666;
    background: #f5f5f5;
}

.status-loading::before {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.status-success {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.status-success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

.status-error {
    color: #c62828;
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

.status-error::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

.message {
    background: #e3f2fd;
    color: #1565c0;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #bbdefb;
    font-size: 14px;
}

.message::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ffcdd2;
    font-size: 14px;
}

.error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

/* Back Links */
.back-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-links p {
    color: #666;
    font-size: 14px;
    margin: 15px 0 8px 0;
}

.back-link {
    display: block;
    margin: 10px 0;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.back-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.back-link i {
    margin-right: 6px;
}

/* Responsive */
@media (max-width: 600px) {
    .login-container {
        margin: 40px 20px;
        padding: 30px 25px;
    }

    .login-container h1 {
        font-size: 24px;
    }
}