/* Authentication Pages Styles */

/* Main override */
main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Common wrapper styles */
.login-wrapper,
.signup-wrapper,
.forgot-password-wrapper,
.dashboard-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 20px 0;
    margin-top: 0;
}

.dashboard-wrapper {
    min-height: calc(100vh - 80px);
    display: block;
}

/* Common container styles */
.login-container,
.forgot-password-container {
    max-width: 500px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 35px 40px;
    margin: 80px auto;
}

.signup-container {
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 25px 35px;
    margin: 80px auto;
}

.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Common heading styles */
.login-heading,
.signup-heading,
.forgot-password-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
}

.login-heading span,
.signup-heading span,
.forgot-password-heading span {
    color: #F0472A;
    border-bottom: 3px solid #F0472A;
    padding-bottom: 2px;
}

/* Form elements */
.form-group {
    margin-bottom: 12px;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #F0472A;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.form-row-half {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row-half .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #F0472A;
    box-shadow: 0 0 0 3px rgba(240, 71, 42, 0.1);
}

/* Buttons */
.btn-login,
.btn-signup,
.btn-reset {
    width: 100%;
    padding: 10px;
    background: #F0472A;
    color: #ffffff;
    border: 2px solid #F0472A;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover,
.btn-signup:hover,
.btn-reset:hover {
    background: #d63d22;
    border-color: #d63d22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 71, 42, 0.3);
}

/* Profile upload */
.profile-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.profile-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ddd;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-upload-wrapper {
    flex: 1;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 6px 16px;
    background: #F0472A;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: #d63d22;
}

/* Social login buttons */
.social-login {
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.btn-facebook {
    flex: 1;
    padding: 10px;
    background: #1877f2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-apple {
    flex: 1;
    padding: 10px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-apple:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Divider */
.divider {
    text-align: center;
    margin: 12px 0;
    position: relative;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: #999;
    font-size: 13px;
}

/* Links */
.forgot-password {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 12px;
}

.forgot-password a {
    color: #F0472A;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: #d63d22;
    text-decoration: underline;
}

.back-to-login {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.back-to-login a {
    color: #F0472A;
    text-decoration: none;
    font-weight: 600;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.signup-link a {
    color: #F0472A;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

.already-member {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.already-member a {
    color: #F0472A;
    text-decoration: none;
    font-weight: 600;
}

.already-member a:hover {
    text-decoration: underline;
}

.login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #F0472A;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Messages */
.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Forgot password specific */
.forgot-password-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Dashboard specific styles */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 25px;
}

.dashboard-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-family: 'Open Sans', sans-serif;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 12px 0;
}

.info-item strong {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.quick-actions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-actions-list li a {
    display: block;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-actions-list li a:hover {
    background: #F0472A;
    color: #ffffff;
    border-color: #F0472A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 71, 42, 0.3);
}

.logout-button {
    width: 100%;
    max-width: 200px;
    padding: 12px 24px;
    background: #ffffff;
    color: #F0472A;
    border: 2px solid #F0472A;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-button:hover {
    background: #F0472A;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 71, 42, 0.3);
}

/* Responsive styles for laptop and smaller screens */
@media (min-width: 1600px) {
    .login-wrapper,
    .signup-wrapper,
    .forgot-password-wrapper {
        min-height: calc(100vh - 80px);
        padding: 80px 20px 80px;
    }
}

@media (max-width: 1366px) {
    .login-wrapper,
    .signup-wrapper,
    .forgot-password-wrapper {
        padding: 40px 20px 40px;
    }
}

@media (max-width: 992px) {
    .login-wrapper,
    .signup-wrapper,
    .forgot-password-wrapper {
        padding: 50px 20px 50px;
    }
    
    .login-container,
    .forgot-password-container {
        padding: 30px 30px;
    }
    
    .signup-container {
        padding: 25px 25px;
    }
}

@media (max-width: 768px) {
    .login-wrapper,
    .signup-wrapper,
    .forgot-password-wrapper {
        padding: 20px 15px 40px;
    }
    
    .login-container,
    .forgot-password-container,
    .signup-container {
        padding: 25px 20px;
    }
    
    .login-heading,
    .signup-heading,
    .forgot-password-heading {
        font-size: 22px;
        margin-bottom: 18px;
    }
}

@media (max-width: 576px) {
    .login-wrapper,
    .signup-wrapper,
    .forgot-password-wrapper {
        padding: 15px 10px 30px;
    }
    
    .login-container,
    .forgot-password-container,
    .signup-container {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .btn-facebook,
    .btn-apple {
        width: 100%;
    }
}