/* Reset CSS */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* main css */

/* Main Styles */
:root {
    --primary-color: #bc0101;
    --primary-dark: #960101;
    --text-light: #b1c3ce;
    --text-white: #ffffff;
    --border-color: #314e5d;
    --input-bg: rgba(9, 29, 41, 0.7);
    --container-bg: rgba(9, 29, 41, 0.7);
    --shadow-color: rgba(129, 202, 255, 0.28);
    --social-shadow: rgba(209, 243, 255, 0.3);
    --gradient-start: #064a5f;
    --gradient-end: #091c28;
}

body {
    background-color: var(--gradient-end);
    color: var(--text-light);
    overflow-x: hidden;
}

.main-login-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(293.52deg, var(--gradient-start), var(--gradient-end));
}

/* Background Elements */
.background-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(https://static.codia.ai/custom_image/2025-05-07/082834/background-texture.png) no-repeat center;
    background-size: cover;
    z-index: 0;
}

.bottom-wave {
    position: absolute;
    width: 100%;
    height: 358px;
    bottom: 0;
    left: 0;
    background: url(https://static.codia.ai/custom_image/2025-05-07/082834/bottom-wave.png) no-repeat center;
    background-size: cover;
    z-index: 1;
}

.decorative-circle {
    position: absolute;
    width: 396px;
    height: 396px;
    top: 183px;
    right: 0;
    background: url(https://static.codia.ai/custom_image/2025-05-07/082834/decorative-circle.svg) no-repeat center;
    background-size: cover;
    z-index: 1;
}

.corner-badge {
    position: absolute;
    width: 200px;
    height: 200px;
    right: 24px;
    bottom: 24px;
    background: url(https://static.codia.ai/custom_image/2025-05-07/082834/corner-badge.svg) no-repeat center;
    background-size: cover;
    z-index: 2;
}

/* Header Styles */
.site-header {
    position: relative;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo-container {
    margin-right: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.welcome-text {
    color: rgba(65, 163, 165, 0.8);
    font-family: 'Dancing Script', cursive;
    font-size: 156px;
    font-weight: 400;
    line-height: 1.35;
}

/* Content Area */
.content-area {
    position: relative;
    display: flex;
    /* justify-content: space-between; */
    gap: 30px;
    align-items: center;
    padding: 0 40px;
    z-index: 5;
}

.portrait-container {
    flex: 1;
    display: flex;
    /* justify-content: flex-end; */
    /* max-width: 50%; */
}

.main-portrait {
    /* max-height: 80vh; */
    object-fit: cover;
}


/* form css */

/* Form Styles */
.login-container {
    width: 553px;
    max-width: 100%;
    background: var(--container-bg);
    border-radius: 32px;
    padding: 48px 96px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-title {
    color: var(--text-white);
    font-size: 48px;
    font-weight: 500;
    line-height: 52px;
    margin-bottom: 8px;
    font-family: serif;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 14px;
    line-height: 20px;
}

/* Social Login */
.social-login {
    display: flex;
    justify-content: space-between;
    padding: 0 18px;
    margin-bottom: 28px;
}

.social-btn {
    width: 56px;
    height: 56px;
    border-radius: 100px;
    background: var(--input-bg);
    border: 1px solid #086787;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px 0 var(--social-shadow) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px 0 var(--social-shadow) inset;
}

.social-btn i {
    font-size: 24px;
    color: var(--text-white);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider-text {
    color: #839aa6;
    font-size: 14px;
    white-space: nowrap;
}

/* Form Elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 12px;
    color: var(--text-light);
    padding-left: 2px;
}

.input-container {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 0 8px 0 var(--shadow-color) inset;
}

.form-input {
    width: 100%;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    background: transparent;
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.password-container {
    display: flex;
    justify-content: space-between;
}

.toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password img {
    width: 20px;
    height: 20px;
}

/* Forgot Password */
.forgot-password-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-top: -20px;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.forgot-password:hover {
    background-color: rgba(188, 1, 1, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(143.58deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    padding: 20px 40px;
    border-radius: 100px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 1, 1, 0.3);
}

.login-btn img {
    width: 24px;
    height: 24px;
}

.signup-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.signup-text {
    color: var(--text-light);
    font-size: 14px;
}

.signup-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.signup-link:hover {
    background-color: rgba(188, 1, 1, 0.1);
}


/* response=ive css */

/* Responsive Styles */
@media (max-width: 1440px) {
    .welcome-text {
        font-size: 120px;
    }

    .login-container {
        width: 500px;
        padding: 40px 60px;
    }

    .decorative-circle {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 1200px) {
    .content-area {
        flex-direction: column-reverse;
        padding: 0 20px;
    }

    .portrait-container {
        max-width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    .main-portrait {
        max-height: 50vh;
    }

    .login-container {
        margin: 20px auto 40px;
    }

    .welcome-text {
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 20px;
        justify-content: center;
    }

    .welcome-text {
        font-size: 80px;
    }

    .login-container {
        width: 100%;
        padding: 30px 40px;
    }

    .login-title {
        font-size: 36px;
    }

    .social-login {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .social-btn {
        width: 48px;
        height: 48px;
    }

    .decorative-circle,
    .corner-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 60px;
    }

    .login-container {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 32px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .login-btn {
        padding: 16px 24px;
    }

    .bottom-wave {
        height: 200px;
    }
}