/**
 * MindMatch - Authentication Pages Styles
 */

/* Auth Page Container */
.auth-page {
    padding: 60px 0;
    background-color: #f7f7f7;
    min-height: calc(100vh - 140px);
}

.auth-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
}

/* Auth Box (Left Side) */
.auth-box {
    flex: 1;
    padding: 40px;
    min-width: 320px;
}

.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.auth-header p {
    color: #717171;
    font-size: 16px;
}

/* Social Login Buttons */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn i {
    margin-right: 12px;
    font-size: 18px;
}

.social-btn:hover {
    background-color: #f7f7f7;
}

.google-btn i {
    color: #4285F4;
}

.facebook-btn i {
    color: #1877F2;
}

.apple-btn i {
    color: #000;
}

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

.divider-with-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.divider-with-text span {
    position: relative;
    z-index: 2;
    background-color: #fff;
    padding: 0 16px;
    color: #717171;
    font-size: 14px;
}

/* Auth Form */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #484848;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i:first-child {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #717171;
}

.input-with-icon i.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #717171;
    cursor: pointer;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-with-icon input:focus {
    border-color: #ff5a5f;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #ff5a5f;
}

.remember-me label {
    font-size: 14px;
    color: #484848;
}

.forgot-password {
    font-size: 14px;
    color: #ff5a5f;
    text-decoration: none;
}

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

.auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: #717171;
}

.auth-footer a {
    color: #ff5a5f;
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Info (Right Side) */
.auth-info {
    flex: 1.2;
    padding: 60px 40px;
    background: linear-gradient(135deg, #ff5a5f, #e74e54);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-content > p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.info-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit {
    display: flex;
    align-items: flex-start;
}

.benefit i {
    font-size: 24px;
    margin-right: 16px;
    margin-top: 4px;
}

.benefit h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit p {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Sign-up Specific Styles */
.terms-privacy {
    margin: 16px 0 24px;
    font-size: 13px;
    color: #717171;
    line-height: 1.5;
}

.terms-privacy a {
    color: #ff5a5f;
    text-decoration: none;
}

.terms-privacy a:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.input-error input {
    border-color: #e74c3c;
}

.input-error .error-message {
    display: block;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        max-width: 600px;
    }

    .auth-box {
        width: 100%;
    }

    .auth-info {
        padding: 40px;
    }
}

@media screen and (max-width: 576px) {
    .auth-page {
        padding: 20px 0;
    }

    .auth-box {
        padding: 24px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .social-btn {
        font-size: 14px;
    }

    .info-content h2 {
        font-size: 28px;
    }
}
