.tm-modern-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.tm-login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
}

.tm-login-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tm-tab {
    flex: 1;
    padding: 18px 10px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tm-tab:hover {
    color: #f37002;
    background: rgba(243, 112, 2, 0.05);
}

.tm-tab.active {
    color: #f37002;
    background: white;
}

.tm-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f37002;
}

.tm-tab-content {
    display: none;
    padding: 40px;
    box-sizing: border-box;
}

.tm-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-tab-content h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

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

.tm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tm-form-group input[type="text"],
.tm-form-group input[type="email"],
.tm-form-group input[type="password"],
.tm-form-group input[type="tel"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tm-password-field input[type="password"] {
    padding-right: 50px;
}

.tm-form-group input:focus {
    outline: none;
    border-color: #f37002;
    box-shadow: 0 0 0 4px rgba(243, 112, 2, 0.1);
}

.tm-otp-group {
    display: flex;
    gap: 10px;
}

.tm-otp-group input {
    flex: 1;
}

.tm-btn-resend {
    padding: 15px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tm-btn-resend:hover {
    background: #5a6268;
}

.tm-btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f37002 0%, #ff8c42 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

@media (max-width: 768px) {
    .tm-btn-primary {
        padding: 14px;
        font-size: 15px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .tm-btn-primary {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
}

.tm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(243, 112, 2, 0.3);
}

.tm-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #d85f02 0%, #e67e22 100%);
}

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

.tm-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
}

.tm-remember input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    border: 2px solid #e9ecef !important;
}

.tm-remember span {
    white-space: nowrap;
}

.tm-message {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.tm-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tm-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tm-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.tm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .tm-loading {
        width: 18px;
        height: 18px;
        border-width: 2.5px;
        margin-left: 8px;
    }

    .tm-tab-content {
        padding: 30px;
    }

    .tm-tab-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .tm-modern-login {
        padding: 15px;
    }

    .tm-login-container {
        border-radius: 16px;
    }

    .tm-tab {
        padding: 14px 8px;
        font-size: 12px;
    }

    .tm-tab-content {
        padding: 25px 20px;
    }

    .tm-tab-content h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .tm-form-group input[type="text"],
    .tm-form-group input[type="email"],
    .tm-form-group input[type="password"],
    .tm-form-group input[type="tel"] {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tm-password-field input[type="password"] {
        padding-right: 45px;
    }

    .tm-toggle-password {
        font-size: 18px;
        width: 28px;
        height: 28px;
    }

    .tm-loading {
        width: 16px;
        height: 16px;
        border-width: 2px;
        margin-left: 6px;
    }

    .tm-remember {
        margin-bottom: 15px;
    }

    .tm-remember label {
        font-size: 12px;
        gap: 6px;
    }

    .tm-remember input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
    }
}

.tm-password-field {
    position: relative;
}

.tm-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* Success Animation */
.tm-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.tm-success-animation {
    text-align: center;
    animation: scaleIn 0.5s ease;
}

.tm-success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.tm-success-checkmark svg {
    width: 100%;
    height: 100%;
}

.tm-success-checkmark circle {
    stroke: #4caf50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.tm-success-checkmark path {
    stroke: #4caf50;
    stroke-width: 3;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.tm-success-animation h2 {
    color: white;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.tm-success-animation p {
    color: #ccc;
    font-size: 16px;
    margin: 0;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tm-social-login {
    margin-top: 20px;
}

.tm-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.tm-divider::before,
.tm-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.tm-divider span {
    padding: 0 15px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
}

.tm-google-btn {
    width: 100%;
    padding: 14px 20px;
    background: white;
    color: #444;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    line-height: 1.5;
    box-sizing: border-box;
}

.tm-google-btn svg {
    flex-shrink: 0;
    margin-right: 8px;
}

.tm-google-btn:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

@media (max-width: 768px) {
    .tm-google-btn {
        font-size: 14px;
        padding: 12px 16px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .tm-google-btn {
        font-size: 13px;
        padding: 12px 12px;
        gap: 6px;
    }

    .tm-google-btn svg {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
}