/* PDFQuote Pro Authentication Styles - Final Version */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Banner Image */
.banner-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-image .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

/* Form Styles */
h1 {
    text-align: center;
    padding: 0 0 10px;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 28px;
}

form {
    padding: 0 30px 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #f8f9fa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    background-color: #fff;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
    font-size: 18px;
    z-index: 5;
}

.password-field-container {
    position: relative;
    margin-bottom: 20px;
}

/* Button Styles */
.login-button,
.register-button,
.validate-button,
.reset-button,
.forgot-button,
button[type="submit"] {
    display: inline-block;
    padding: 12px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.login-button,
.forgot-button {
    background-color: #3498db;
    color: white;
    width: 100%;
}

.login-button:hover,
.forgot-button:hover {
    background-color: #2980b9;
}

.register-button,
.validate-button,
button[type="submit"] {
    background-color: #2ecc71;
    color: white;
    width: 100%;
}

.register-button:hover,
.validate-button:hover,
button[type="submit"]:hover {
    background-color: #27ae60;
}

.reset-button {
    background-color: #3498db;
    color: white;
    width: 100%;
}

.reset-button:hover {
    background-color: #2980b9;
}

.login-register-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-register-container button {
    width: 48%;
}

/* Links */
.back-link,
.forgot-password-link {
    display: block;
    text-align: center;
    margin: 15px 0;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover,
.forgot-password-link:hover {
    text-decoration: underline;
}

.forgot-password-button {
    display: block;
    text-align: right;
    margin: 5px 0 20px;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding-right: 10px;
}

.forgot-password-button:hover {
    text-decoration: underline;
}

/* Messages */
.error,
.success,
.warning {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Account Lockout Message */
.account-locked {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.account-locked h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Password Requirements */
.password-requirements {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.password-requirements h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #495057;
}

.password-requirements ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.password-requirements li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #6c757d;
}

.password-strength {
    height: 5px;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-weak {
    background-color: #e74c3c;
    width: 33%;
}

.strength-medium {
    background-color: #f39c12;
    width: 66%;
}

.strength-strong {
    background-color: #2ecc71;
    width: 100%;
}

/* Session Timeout Warning */
.session-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    text-align: center;
    z-index: 1000;
    border-bottom: 1px solid #ffeeba;
}

.session-warning button {
    background-color: #856404;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    margin-left: 10px;
    cursor: pointer;
}

.session-warning button:hover {
    background-color: #664d03;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    #app {
        max-width: 100%;
    }
    
    form {
        padding: 0 20px 20px;
    }
    
    .login-register-container {
        flex-direction: column;
    }
    
    .login-register-container button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .banner-image {
        height: 150px;
    }
    
    .banner-image .overlay {
        font-size: 20px;
        padding: 8px 15px;
    }
}