/**
 * Amapay Security Styles - Military Grade Security UI
 * Professional security interface for beta authentication
 */

/* Beta Authentication Modal */
.beta-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.beta-auth-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.beta-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #0099ff, #00d4ff);
    background-size: 200% 100%;
    animation: securityGradient 3s ease-in-out infinite;
}

@keyframes securityGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.beta-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.beta-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.beta-auth-logo img {
    height: 50px;
    margin-right: 15px;
}

.beta-auth-title {
    color: #00d4ff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.beta-auth-subtitle {
    color: #a8b2d1;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.beta-security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    color: #00d4ff;
    margin-top: 1rem;
}

.beta-security-badge i {
    margin-right: 0.5rem;
}

.beta-auth-form {
    margin-bottom: 1.5rem;
}

.beta-auth-container .form-group {
    margin-bottom: 1.5rem;
}

.beta-auth-container .form-group label {
    display: block;
    color: #a8b2d1;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.beta-auth-container .form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.beta-auth-container .form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.beta-auth-container .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a8b2d1;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: #00d4ff;
}

.beta-auth-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.beta-auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.beta-auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.beta-auth-footer {
    text-align: center;
    color: #a8b2d1;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

.security-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.security-feature {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #a8b2d1;
}

.security-feature i {
    color: #00d4ff;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Security Alerts */
.security-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 9999;
    border-radius: 10px;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.security-alert-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #ffffff;
    color: #333;
}

.security-alert-warning {
    border-left: 4px solid #f59e0b;
}

.security-alert-warning .security-alert-content {
    background: #fef3c7;
    color: #92400e;
}

.security-alert-error {
    border-left: 4px solid #ef4444;
}

.security-alert-error .security-alert-content {
    background: #fee2e2;
    color: #991b1b;
}

.security-alert-success {
    border-left: 4px solid #10b981;
}

.security-alert-success .security-alert-content {
    background: #d1fae5;
    color: #065f46;
}

.security-alert i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.security-alert-warning i {
    color: #f59e0b;
}

.security-alert-error i {
    color: #ef4444;
}

.security-alert-success i {
    color: #10b981;
}

.security-alert-close {
    background: none;
    border: none;
    margin-left: auto;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.security-alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Error States */
.error-input {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .beta-auth-container {
        margin: 1rem;
        padding: 2rem;
    }

    .beta-auth-title {
        font-size: 1.5rem;
    }

    .security-features {
        grid-template-columns: 1fr;
    }

    .security-alert {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Security Badge in Header */
.security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    color: #00d4ff;
    margin-left: 1rem;
}

.security-badge i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Blur Effect for Protected Content */
.content-protected {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

/* Security Footer */
.security-footer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.security-footer i {
    margin-right: 0.5rem;
}

/* Form Validation States */
.form-group.valid input {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.form-group.error input {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.form-feedback {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
}

.form-feedback.valid {
    color: #10b981;
}

.form-feedback.error {
    color: #ef4444;
}

.form-feedback i {
    margin-right: 0.3rem;
}