﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #f5f6f8;
}

.login-register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px);
    padding: 30px 16px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.login-title {
    text-align: center;
    margin: 0 0 25px;
    color: #0d6efd;
}

.alert-error,
.alert-success {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
}

.alert-error {
    background: #fdecea;
    color: #b42318;
}

.alert-success {
    background: #e7f6ec;
    color: #027a48;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
        color: #333;
    }

    .form-group input {
        display: block;
        width: 100%;
        height: auto;
        padding: 12px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        outline: none;
        background: #fff;
    }

        .form-group input:focus {
            border-color: #0d6efd;
        }

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 42px;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

    .remember input {
        width: auto;
    }

.forgot {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.btn-primary {
    display: block;
    width: 100%;
    height: 52px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #0d6efd;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #0b5ed7;
    }

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #ddd;
    }

    .divider span {
        margin: 0 10px;
        font-size: 13px;
        color: #777;
    }

.google-login {
    display: flex;
    justify-content: center;
}

.register-link {
    text-align: center;
    margin-top: 18px;
}

    .register-link a {
        color: #333;
        text-decoration: none;
    }

.btn-secondary {
    display: block;
    width: 100%;
    height: 52px;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background: #6c757d;
    color: #fff;
    cursor: pointer;
}

#formStep2 h4 {
    margin: 0 0 20px !important;
}

@media (max-width: 600px) {
    .login-register-page {
        min-height: calc(100vh - 58px);
        padding: 20px 12px;
    }

    .login-card {
        padding: 24px 20px;
    }

    .login-title {
        margin-bottom: 20px;
    }
}
