/* 
 * Barbershop - Login/Register Styles
 * Complete styling solution for authentication pages
 */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #215F76, #0f2c36);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    padding: 20px;
}

/* === CONTAINER STYLES === */
.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 30px;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.register-container {
    max-width: 500px;
}

.register-card {
    padding: 25px 30px;
}

/* === HEADER STYLES === */
.login-header {
    text-align: center;
    margin-bottom: 20px;
}

/* Logo image styling */
.logo-image {
    margin-bottom: 12px;
    text-align: center;
}

.logo-image img {
    max-width: 100px;
    height: auto;
}

.login-header h2 {
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
    font-size: 26px; /* Increased for the new font */
    margin-bottom: 6px;
    color: #333;
    font-weight: 500; /* Adjusted for the font */
}

.login-header p {
    color: #777;
    font-size: 14px;
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
}

/* === FORM STYLES === */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 13px;
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
}

label i {
    margin-right: 6px;
    color: #215F76;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #215F76;
    box-shadow: 0 0 0 3px rgba(33, 95, 118, 0.15);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 36px;
    cursor: pointer;
    color: #777;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 6px;
}

.remember-me label {
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
    margin-bottom: 0;
}

.forgot-password {
    color: #215F76;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
}

.forgot-password:hover {
    color: #0f2c36;
    text-decoration: underline;
}

/* === BUTTON STYLES === */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
}

.btn-login {
    background-color: #215F76;
    color: white;
}

.btn-login:hover {
    background-color: #174654;
}

.btn-register {
    background-color: #6b4c35;
    color: white;
    text-decoration: none;
}

.btn-register:hover {
    background-color: #4d3626;
}

/* === FOOTER STYLES === */
.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.login-footer p {
    margin-bottom: 8px;
    color: #777;
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
}

/* Enhanced back-to-home with animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 95, 118, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(33, 95, 118, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 95, 118, 0);
    }
}

.back-to-home {
    text-align: center;
    margin-top: 25px;
    padding: 10px 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.back-to-home a {
    color: #ffffff;
    background-color: #215F76;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Sorts Mill Goudy', Georgia, serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
    margin-top: 5px;
}

.back-to-home a i {
    margin-right: 8px;
    font-size: 18px;
}

.back-to-home a:hover {
    background-color: #174654;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* === ALERT STYLES === */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 8px;
    font-size: 16px;
}

.alert span {
    font-family: 'Sorts Mill Goudy', Georgia, serif; /* Added Sorts Mill Goudy font */
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === CHECKBOX STYLES === */
.terms-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    accent-color: #215F76;
    cursor: pointer;
    transform: scale(1.1);
    border: 2px solid #ddd;
    border-radius: 3px;
}

.terms-check input[type="checkbox"]:focus {
    outline: 2px solid #215F76;
    outline-offset: 2px;
}

.terms-check input[type="checkbox"]:checked {
    background-color: #215F76;
    border-color: #215F76;
}

.terms-check label {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.terms-check a {
    color: #215F76;
    text-decoration: none;
    font-weight: 500;
}

.terms-check a:hover {
    text-decoration: underline;
    color: #1a4d61;
}

/* Enhanced checkbox validation styles */
.terms-group.error {
    border-color: #dc3545;
    background-color: #fff5f5;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE STYLES === */
@media (max-width: 576px) {
    .login-card {
        padding: 25px 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .logo-image img {
        max-width: 90px;
    }
    
    .back-to-home a {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .terms-group {
        padding: 12px;
        margin: 15px 0;
    }
    
    .terms-check {
        gap: 8px;
    }
    
    .terms-check input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-top: 1px;
    }
    
    .terms-check label {
        font-size: 13px;
        line-height: 1.3;
    }
}