/* auth.css - Styles for authentication pages */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f7f9;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/auth-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    z-index: 1;
}

.auth-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    overflow: hidden;
    position: relative;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h1 {
    font-size: 20px;
    color: #333;
}

.home-link {
    color: #09c;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.home-link:hover {
    color: #07a;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    height: 60px;
    width: auto;
}

/* Form Elements */
.form-group {
    position: relative;
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #09c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 153, 204, 0.1);
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 10px;
    color: #aaa;
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}

/* CAPTCHA */
.captcha-group {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
}

#captcha-image {
    flex: 1;
    height: 80px;
    width: 250px;
    border-radius: 6px;
    border: 1px solid #ddd;
    object-fit: contain;
}

.refresh-btn {
    background: none;
    border: none;
    color: #09c;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background-color: rgba(0, 153, 204, 0.1);
}

/* Terms & Info Text */
.terms-text,
.reset-info {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
}

.terms-text a {
    color: #09c;
    text-decoration: none;
}

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

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #211757;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.submit-btn:hover {
    background-color: #07a;
}

/* Auth Links */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 12px;
}

.auth-links a {
    color: #09c;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #07a;
}

/* Social Login */
.social-login {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.google-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e94235;
    font-size: 16px;
    transition: all 0.3s ease;
}

.google-btn:hover {
    background-color: #e94235;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 18px;
    }
    
    .card-header h1 {
        font-size: 18px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 9px 30px 9px 10px;
        font-size: 12px;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 8px;
    }
    
    #captcha-image {
        height: 70px;
        width: 200px;
    }
}

/* Message Alerts */
.messages {
    margin-bottom: 15px;
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    position: relative;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #2e7d32;
}

.alert-warning {
    background-color: #fff8e1;
    color: #f57f17;
    border-left: 3px solid #f57f17;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 3px solid #1565c0;
}

.alert i {
    margin-right: 6px;
}

/* Resend Verification Styles */
.resend-verification-container {
    text-align: center;
    padding: 15px 0;
}

.resend-verification-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.resend-verification-message {
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
    font-size: 13px;
}

.resend-verification-form {
    margin-bottom: 20px;
}

.info-box {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-box i {
    color: #1565c0;
    font-size: 14px;
    margin-top: 1px;
}

.info-box p {
    color: #1565c0;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: #211757;
    color: white;
}

.primary-btn:hover {
    background-color: #1a0f3f;
    color: white;
}

.secondary-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.secondary-btn:hover {
    background-color: #e8e8e8;
    color: #333;
}

.support-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.support-info p {
    color: #777;
    font-size: 12px;
}

.support-info a {
    color: #09c;
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Verification Sent Styles */
.verification-sent-container {
    text-align: center;
    padding: 15px 0;
}

.verification-sent-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.verification-sent-message {
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
    font-size: 13px;
}

.email-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
}

.email-info p {
    color: #495057;
    font-size: 13px;
    margin: 0;
}

.email-info span {
    font-weight: 600;
    color: #211757;
}

/* Verification Styles */
.verification-container {
    text-align: center;
    padding: 15px 0;
}

.verification-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.verification-message {
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
    font-size: 13px;
}

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

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #211757, #09c);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 28px;
}

/* Error Messages */
.error-message {
    color: #c62828;
    font-size: 11px;
    margin-top: 4px;
    text-align: left;
    position: relative;
    z-index: 1;
}