/* 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.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

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

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

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

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

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

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

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

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

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

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    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 3px rgba(0, 153, 204, 0.1);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

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

#captcha-image {
    flex: 1;
    height: 100px; /* Increased from 45px to 100px */
    width: 300px; /* Added specific width of 300px */
    border-radius: 8px;
    border: 1px solid #ddd;
    object-fit: contain; /* Ensures image maintains aspect ratio */
}

.refresh-btn {
    background: none;
    border: none;
    color: #09c;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    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: 12px;
    color: #777;
    line-height: 1.5;
    margin-bottom: 20px;
    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: 12px;
    background-color: #211757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

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

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

.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: 10px;
}

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

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

/* Responsive Adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 20px;
    }
    
    .card-header h1 {
        font-size: 18px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 10px 35px 10px 12px;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 10px;
    }
    
    #captcha-image {
        height: 80px; /* Slightly smaller for mobile */
        width: 240px; /* Slightly smaller for mobile */
    }
}