* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SukhumvitSet', sans-serif;
    background: #FBFBF3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: #03620A;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}


.login-header h1 {
    color: #FFF;
    text-align: center;
    font-family: "SukhumvitSet";
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
}

.login-header-sub-title {
    text-align: center;
    font-family: "SukhumvitSet";
    font-size: 16px !important;
    font-style: normal;
    font-weight: 500;
}

.login-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    color: var(--TextField-Text-Topic-TF-Text-Topic-Default-Normal, var(--Text-Dynamic-Text-Default-Normal, #1C1C1C));
    font-family: var(--Font-Text-Font-Normal, "SukhumvitSet");
    font-size: var(--Size-Text-Size-H4, 16px);
    font-style: normal;
    font-weight: var(--Weight-Text-Weight-Bold, 600);
    line-height: var(--Line-Height-Text-LH-H4, 24px); /* 150% */
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

  .form-control::placeholder {
    color: #BFBFBF;
    font-family: var(--Font-Text-Font-Normal, "SukhumvitSet");
    font-size: var(--Size-Text-Size-H4, 16px);
    font-style: normal;
    font-weight: var(--Weight-Text-Weight-Regular, 400);
    line-height: var(--Line-Height-Text-LH-H4, 24px); /* 150% */
  }
  
  .form-control:-ms-input-placeholder {
    color: #BFBFBF;
  }
  
  .form-control::-ms-input-placeholder {
    color: #BFBFBF;
  }
  
  .form-control::-webkit-input-placeholder {
    color: #BFBFBF;
  }
  
  .form-control:-moz-placeholder {
    color: #BFBFBF;
    font-family: var(--Font-Text-Font-Normal, "SukhumvitSet");
    font-size: var(--Size-Text-Size-H4, 16px);
    font-style: normal;
    font-weight: var(--Weight-Text-Weight-Regular, 400);
    line-height: var(--Line-Height-Text-LH-H4, 24px); /* 150% */
  }
  
  .form-control::-moz-placeholder {
    color: #BFBFBF;
    font-family: var(--Font-Text-Font-Normal, "Sukhumvit Set");
    font-size: var(--Size-Text-Size-H4, 16px);
    font-style: normal;
    font-weight: var(--Weight-Text-Weight-Regular, 400);
    line-height: var(--Line-Height-Text-LH-H4, 24px); /* 150% */
  }

.btn {
    width: 100%;
    height: 41px !important;
    padding: 20px;
    border: none;
    border-radius: 10px;
    color: #FFF;
    font-family: var(--Font-Text-Font-Normal, "Sukhumvit Set");
    font-size: var(--Size-Text-Size-H4, 16px);
    font-style: normal;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 3px;
    margin-top: 10px;
}

.err-message {
    color: var(--Event-Danger-Danger-Hard, #D95656);
    font-family: var(--Font-Text-Font-Normal, "Sukhumvit Set");
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 24.837px;
}

.btn-primary {
    background: #03620A;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #03620A;
}

.btn-primary:active {
    transform: translateY(0);
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: #667eea;
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .login-container {
        border-radius: 15px;
    }
    
    .login-header {
        padding: 1.5rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
}


.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.7rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #E9E9E9;
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.divider span {
    color: var(--Text-Dynamic-Text-Default-Harder, #000);
    font-family: var(--Font-Text-Font-Normal, "Sukhumvit Set");
    font-size: var(--Size-Text-Size-H4, 16px);
    font-style: normal;
    font-weight: var(--Weight-Text-Weight-Regular, 400);
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 12px 20px;
    border: 1px solid #E9E9E9;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--Text-Dynamic-Text-Default-Harder, #000);
    font-family: "SukhumvitSet", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    min-height: 48px;
    box-sizing: border-box;
}

.btn-oauth:hover {
    background-color: #f9fafb;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-oauth:active {
    transform: translateY(0);
    background-color: #f1f5f9;
}

.btn-oauth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-oauth-icon {
    height: 16px;
    width: 16px;
    aspect-ratio: 1/1;
    position: absolute;
    left: 70px;
    top: 45%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.btn-oauth span {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .btn-oauth {
        padding: 12px 16px;
        min-height: 52px;
        font-size: 15px;
    }
    
    .btn-oauth-icon {
        height: 18px;
        width: 18px;
        left: 75px;
        top: 48%;
    }
    
    .btn-oauth span {
        font-size: 15px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .btn-oauth {
        padding: 14px 12px;
        min-height: 56px;
        font-size: 14px;
    }
    
    .btn-oauth-icon {
        height: 20px;
        width: 20px;
        left: 80px;
        top: 48%;
    }
    
    .btn-oauth span {
        font-size: 14px;
        font-weight: 500;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.4;
        text-align: center;
        padding-left: 30px;
    }
}

@media (max-width: 360px) {
    .btn-oauth {
        padding: 12px 8px;
        min-height: 52px;
        font-size: 13px;
    }
    
    .btn-oauth-icon {
        height: 18px;
        width: 18px;
        left: 60px;
        top: 50%;
    }
    
    .btn-oauth span {
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        padding-left: 25px;
    }
}
