@font-face {
    font-family: 'myfont';
    src: url('/bootstrap/font/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'myfontbold';
    src: url('/bootstrap/font/Montserrat-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'myfont', sans-serif;
    height: 100vh;
    width: 100%;
}

.login-section {
    position: relative;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 20px;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1250px;
    margin: 0 auto;
}

.left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.welcome-text h1 {
    font-size: 2.5rem;
    font-family: 'myfontbold', sans-serif;
    line-height: 1.2;
    margin: 0;
}

.logo-container {
    width: 480px;
    height: 480px;
    flex-shrink: 0;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-form-container {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
}

.login-form-container .login-text {
    color: black;
}

.login-form-container .register-text {
    color: black;
    font-size: 16px;
}

.login-form-container .register-text a {
    color: #1b7f3b;
    font-family: 'myfontbold', sans-serif;
}

.form-group {
    margin-bottom: 20px;
}

.password-wrapper {
    position: relative;
}

.form-label {
    color: black;
    font-family: 'myfontbold', sans-serif;
    margin-bottom: 8px;
    display: block;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    height: 45px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 0 15px;
    font-size: 1rem;
    background: white;
}

.password-wrapper .form-control {
    padding-right: 50px;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-control::placeholder {
    color: #999;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.forgot-link{
    font-size: 13px;
    color: #198754;
    text-decoration: none;
    width: fit-content;
    font-weight: bold;
    margin-bottom: 20px;
    transition: color .2s;
}

.forgot-link:hover{
    color: #146c43;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 45px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.90rem;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #218838;
}

.btn-google {
    width: 100%;
    height: 45px;
    background: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.80rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-google:hover {
    background: #f2f2f2;
}

.google-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 5px;
}

.google-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.register-text {
    text-align: center;
    margin-top: 20px;
    color: white;
}

.register-text a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.register-text a:hover {
    text-decoration: underline;
}

.otp-countdown {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #198754;
    font-family: 'myfontbold', sans-serif;
}

#otpTimer {
    font-weight: bold;
    color: #dc3545;
}

.resend-container {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.resend-otp-link {
    margin-left: 5px;
    color: #aaa;
    text-decoration: none;
    font-family: 'myfontbold', sans-serif;
    pointer-events: none;
    cursor: default;
}

.resend-otp-link.active {
    color: #198754;
    pointer-events: auto;
    cursor: pointer;
}

.resend-otp-link.active:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .welcome-text h1 {
        font-size: 2.5rem;
    }

    .logo-container {
        width: 220px;
        height: 220px;
    }

    .login-form-container {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 2rem;
    }

    .logo-container {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 576px) {
    .welcome-text h1 {
        font-size: 1.5rem;
    }

    .logo-container {
        width: 150px;
        height: 150px;
    }

    .login-form-container {
        max-width: 100%;
    }
}