/* ===================== */
/* GLOBAL STYLES        */
/* ===================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: hsl(220, 35%, 8%);
    color: rgb(255, 255, 255);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================== */
/* GEOMETRIC BACKGROUND  */
/* ===================== */

.geometric-bg {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, hsl(220, 35%, 8%) 0%, hsl(220, 35%, 12%) 100%);
    overflow: hidden;
}

.geometric-bg::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.geometric-bg::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===================== */
/* ===================== */
/* MAIN CONTAINER       */
/* ===================== */

.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
}

/* ===================== */
/* BRAND SECTION        */
/* ===================== */

.brand-section {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
}

.logo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsl(180, 100%, 50%);
    border-radius: 0.5rem;
    transform: rotate(45deg);
    opacity: 0.8;
}

.logo-inner {
    position: absolute;
    inset: 0.25rem;
    background-color: hsl(180, 100%, 48%);
    border-radius: 0.375rem;
    transform: rotate(-12deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 1;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-eviden {
    color: white;
}

.brand-chain {
    color: hsl(180, 100%, 50%);
}

/* ===================== */
/* CARD WRAPPER         */
/* ===================== */

.card-wrapper {
    position: relative;
    width: 100%;
    max-width: 28rem;
}

.card-glow {
    position: absolute;
    inset: -0.25rem;
    background: linear-gradient(to right, hsl(180, 100%, 48%), hsl(180, 100%, 50%));
    border-radius: 1.5rem;
    opacity: 0.3;
    filter: blur(1rem);
    pointer-events: none;
}

/* ===================== */
/* LOGIN CARD           */
/* ===================== */

.login-card {
    position: relative;
    background: linear-gradient(to bottom, hsl(225, 30%, 12%), hsl(225, 30%, 10%));
    border: 2px solid hsl(180, 100%, 50%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.card-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

/* ===================== */
/* LOGIN FORM           */
/* ===================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Group */
.form-group {
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(180, 100%, 50%);
    flex-shrink: 0;
    stroke-width: 2;
    transition: color 0.2s ease;
    pointer-events: none;
}

.input-wrapper:focus-within .input-icon {
    color: hsl(180, 100%, 48%);
}

.form-input {
    width: 100%;
    background-color: transparent;
    border: 2px solid hsl(180, 100%, 50%);
    border-radius: 1rem;
    padding-left: 3rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: rgba(0, 217, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: hsl(180, 100%, 48%);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: hsl(180, 100%, 50%);
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    padding: 0;
}

.password-toggle:hover {
    color: hsl(180, 100%, 48%);
}

.password-toggle svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.icon-show,
.icon-hide {
    stroke: currentColor;
    fill: none;
}

/* ===================== */
/* FORGOT PASSWORD      */
/* ===================== */

.forgot-password-wrapper {
    text-align: right;
}

.forgot-password-link {
    font-size: 0.875rem;
    color: hsl(180, 90%, 70%);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: hsl(180, 100%, 48%);
}

/* ===================== */
/* LOGIN BUTTON         */
/* ===================== */

.login-button {
    width: 100%;
    background: linear-gradient(to right, hsl(180, 100%, 48%), hsl(180, 100%, 60%));
    color: hsl(220, 35%, 8%);
    font-weight: bold;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.login-button:hover {
    background: linear-gradient(to right, hsl(180, 100%, 45%), hsl(180, 100%, 55%));
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
    transform: scale(1.02);
}

.login-button:active {
    transform: scale(0.95);
}

/* ===================== */
/* MESSAGE ALERTS       */
/* ===================== */

.message-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.message-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.message-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== */
/* SIGN UP LINK         */
/* ===================== */

.signup-wrapper {
    text-align: center;
    padding-top: 1rem;
}

.signup-text {
    color: hsl(180, 90%, 70%);
    font-size: 1rem;
}

.signup-link {
    color: hsl(180, 100%, 50%);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: hsl(180, 100%, 48%);
}

/* ===================== */
/* DECORATIVE ELEMENTS  */
/* ===================== */

.deco-element {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}

.deco-bottom-right {
    bottom: -5rem;
    right: -5rem;
    width: 10rem;
    height: 10rem;
    background-color: rgba(0, 217, 255, 0.1);
    filter: blur(3rem);
}

.deco-top-left {
    top: -5rem;
    left: -5rem;
    width: 10rem;
    height: 10rem;
    background-color: rgba(0, 217, 255, 0.05);
    filter: blur(3rem);
}

/* ===================== */
/* RESPONSIVE DESIGN    */
/* ===================== */

@media (max-width: 640px) {
    .login-container {
        padding: 1rem;
    }

    .brand-section {
        margin-bottom: 2rem;
    }

    .brand-content {
        gap: 0.5rem;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .login-form {
        gap: 1rem;
    }

    .form-input {
        font-size: 1rem;
        padding-left: 2.5rem;
    }

}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .card-wrapper {
        max-width: 100%;
    }

    .login-card {
        border-radius: 1.25rem;
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.375rem;
    }

    .login-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* ===================== */
/* DARK MODE (DEFAULT)   */
/* ===================== */

@media (prefers-color-scheme: dark) {
    body {
        background-color: hsl(220, 35%, 8%);
        color: rgb(255, 255, 255);
    }
}

