/* Accounts System Styling */

.auth-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    position: relative;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 15px;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #007bff;
}

/* Form Styles */
.auth-form {
    transition: all 0.3s ease;
}

.auth-form.hidden {
    display: none;
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    outline: none;
}

.form-group input:invalid {
    border-color: #dc3545;
}

.field-info {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 5px;
    background-color: #444;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.strength-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-bar[data-strength="weak"]::before {
    width: 25%;
    background-color: #dc3545;
}

.strength-bar[data-strength="medium"]::before {
    width: 50%;
    background-color: #ffc107;
}

.strength-bar[data-strength="strong"]::before {
    width: 75%;
    background-color: #20c997;
}

.strength-bar[data-strength="very-strong"]::before {
    width: 100%;
    background-color: #28a745;
}

.strength-text {
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 42px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 12px;
    padding: 5px;
}

.password-toggle:hover {
    color: #fff;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: #ddd;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 20px;
    width: 20px;
    background-color: #2c2c2c;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    margin-right: 10px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #333;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Message Container */
.message-container {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: 500;
    display: none;
}

.message-container.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: block;
}

.message-container.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
    display: block;
}

/* Links */
.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Home Link */
.home-link {
    margin-top: 20px;
    text-align: center;
}

.home-link a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.home-link a:hover {
    color: #007bff;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form:not(.hidden) {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .auth-container {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
} 
