/* Base Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background: linear-gradient(to right, #0a0a0a, #121212, #0a0a0a);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}


/* Container Layout */

.container {
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 2rem;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Logo */

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-icon {
    background: linear-gradient(135deg, #8a2be2, #9b59b6);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    background: linear-gradient(to right, #8a2be2, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Typography */

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}


/* Form Elements */

form {
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding-right: 40px;
}

input:focus {
    outline: none;
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}


/* Buttons */

.btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    margin-top: 1.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9370db, #8a2be2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(138, 43, 226, 0.4);
}

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

.btn-social {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-social svg {
    margin-right: 0.75rem;
}


/* Divider */

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
}


/* Links */

.login-link,
.signup-link {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.login-link a,
.signup-link a {
    color: #8a2be2;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link a:hover,
.signup-link a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* Phone Mockup */

.mockup-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.app-content {
    height: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(10, 10, 10, 0.9)), url('https://images.pexels.com/photos/3075993/pexels-photo-3075993.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.app-icon {
    width: 40px;
    height: 40px;
    background: #ff4500;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.app-title {
    display: flex;
    flex-direction: column;
}

.app-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.post-preview {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-out;
}

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

.post-content {
    display: flex;
    flex-direction: column;
}

.post-user {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff4500;
    margin-bottom: 0.5rem;
}

.post-text {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.4;
}

.generate-btn {
    margin-top: auto;
    padding: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #8a2be2, #ff4500);
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}


/* Responsive Design */

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }
    .auth-container,
    .mockup-container {
        flex: none;
        width: 100%;
    }
    .mockup-container {
        display: none;
    }
    .auth-form {
        max-width: 100%;
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    .auth-form {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.75rem;
    }
}


/* Animations */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

input:focus {
    animation: pulse 1.5s infinite;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}
