/* ===========================
   POPUP-MT.CSS - Independent Moonton Login Popup Styles
   Stand-alone CSS without dependencies on popup-style.css
   =========================== */

/* ===========================
   BASE POPUP OVERLAY
   =========================== */
.mt-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

/* ===========================
   POPUP CONTAINER
   =========================== */
.mt-popup-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.mt-popup-content {
    background: linear-gradient(to bottom, rgba(42,66,120,0.95), rgba(50,80,129,0.95));
    border: 1px solid #405E8D;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    max-height: 90vh;
    position: relative;
    border-radius: 0;
}

/* Border decoration overlay */
.mt-popup-content::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid #3d4f86;
    border-image: url('../assets_img/border-popup.png') 10 round;
    border-image-width: 8px;
    pointer-events: none;
    z-index: 10;
}

/* ===========================
   POPUP NAVBAR
   =========================== */
.mt-popup-navbar {
    background: transparent;
    padding: 5px 16px;
    border-bottom: 1px solid rgba(74,111,165,0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    position: relative;
}

.mt-popup-logo {
    display: flex;
    align-items: center;
    z-index: 3;
    flex-shrink: 0;
    position: relative;
    margin-left: -5px;
    margin-top: -3px;
}

.mt-popup-logo img {
    width: 30px;
    height: auto;
    object-fit: contain;
}

.mt-popup-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 0;
    padding: 0 10px;
    z-index: 2;
    pointer-events: none;
    width: auto;
    max-width: 60%;
}

.mt-popup-title h3 {
    color: #E8F4FD;
    font: 400 14px Arial, sans-serif;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt-popup-navbar .popup-close-mt {
	width: 32px;
	height: 32px;
	cursor: pointer;
	transition: transform 0.3s ease;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.mt-popup-navbar .popup-close-mt img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.mt-popup-navbar .popup-close-mt:hover {
	transform: scale(1.1);
}

/* ===========================
   POPUP BODY
   =========================== */
.mt-popup-body {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    overflow-y: auto;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* ===========================
   FORM STYLES
   =========================== */
.mt-form-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.mt-form-label {
    color: #9DBFE3;
    font-size: 13px;
    margin-bottom: 0px;
    margin-top: 10px;
    display: block;
    font-weight: 400;
}

.mt-input-wrapper {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
}

.mt-password-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
    border: 1px solid #819CD1;
    border-radius: 0;
    background: #223A54;
    height: 35px;
    padding: 0;
}

.mt-password-grid input {
    border: none !important;
    background: transparent !important;
    padding: 10px !important;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
}

.mt-password-grid input:focus {
    border: none !important;
    outline: none !important;
}

.mt-password-grid:focus-within {
    border-color: #CFB990;
}

.mt-input-wrapper input {
    background: #223A54;
    border: 1px solid #819CD1;
    padding: 10px 40px 10px 10px;
    color: #fff;
    font-size: 14px;
    font-family: arial, sans-serif;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: none;
    height: 35px;
    width: 100%;
    box-sizing: border-box;
    font-weight: 400;
    line-height: 1.2;
    vertical-align: middle;
}

.mt-input-wrapper input:focus {
    border: 1px solid #CFB990;
    outline: none;
}

.mt-input-wrapper input::placeholder {
    color: rgba(155, 179, 205, 0.7);
}

/* Password visibility toggle */
.mt-password-toggle {
    position: static;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.mt-password-toggle img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mt-password-toggle:hover img {
    opacity: 1;
}

/* Help text */
.mt-help-text {
    color: #9DBFE3 !important;
    font-size: 10px !important;
    margin-top: 0px !important;
    margin-bottom: 0 !important;
    display: block !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

/* ===========================
   WARNING MESSAGES
   =========================== */
.mt-warning {
    width: 100%;
    padding: 8px 12px;
    margin: 5px 0 10px 0;
    color: #A4A9CF;
    font-size: 10px;
    font-family: Arial, sans-serif;
    text-align: center;
    display: none;
    line-height: 1.4;
    background: rgba(0,0,0,.4);
    border: 0px solid rgba(255, 94, 91, 0.3);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mt-warning.show {
    display: block;
    opacity: 1;
}

/* ===========================
   POPUP FOOTER
   =========================== */
.mt-popup-footer {
    padding: 12px 20px 16px;
    background: transparent;
    border-top: 1px solid rgba(74,111,165,0.3);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ===========================
   BUTTONS
   =========================== */
.mt-btn-primary {
    background: url('../assets_img/btn_on.png') no-repeat center / 100% 100%;
    border: 1px solid #D1C891;
    color: #E7E0D6;
    padding: 10px 15px;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s ease;
    min-width: 35%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    letter-spacing: 0.5px;
}

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

/* Button states for verification form */
.mt-btn-off {
    background: linear-gradient(
    rgba(0, 0, 0, 0.2), /* overlay hitam transparan */
    rgba(0, 0, 0, 0.2)    /* transparan ke bawah */
  ),
  linear-gradient(
    to bottom,
    #a88456, /* bagian atas golden brown */
    #c2a06d  /* bagian bawah golden brown */
  ) no-repeat center / 100% 100% !important;    
    cursor: default;
    color: #C3BDB5 !important;
    border: 1px solid #ADA578;
}

.mt-btn-on {
    background: linear-gradient(to bottom, #a88456, #c2a06d) no-repeat center / 100% 100% !important;
    cursor: pointer;
    border: 1px solid #D1C891;
    
}

.mt-btn-google {
    background: linear-gradient(to bottom, #486fa5, #5f88c5);
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s ease;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.mt-btn-google:hover {
    background: linear-gradient(to bottom, #5A7FB5, #4B6A9C);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mt-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ===========================
   LOADING STYLES
   =========================== */
.mt-loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px 20px;
}

.mt-loading-spinner {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.mt-loading-image {
    width: 60px;
    height: 60px;
    animation: mt-spin 2s linear infinite;
}

@keyframes mt-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===========================
   VERIFICATION STYLES
   =========================== */
.mt-verification-message {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(74,111,165,0.4);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 3px;
    text-align: center;
}

.mt-verification-message label {
    color: #D2EBFF;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    display: block;
}

.mt-highlight-text {
    color: #CFB990 !important;
    font-weight: 500;
}

/* ===========================
   ANIMATIONS
   =========================== */
.zoom-in {
    animation: mt-zoom-in 0.3s ease-out forwards;
}

@keyframes mt-zoom-in {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fadeIn {
    animation: mt-fade-in 0.3s ease-out forwards;
}

@keyframes mt-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

